Visual Basic for Applications (VBA)


Importing a PowerPoint slide into an Excel 2007 worksheet


I'm baffled.
In Excel 2003, we have a lovely .xla file which, amongst other things, loads a PowerPoint .ppt file  (which contains
one very basic slide, showing our logo and a couple of headings), changes the text in the headings, then Pastes this 
PowerPoint file into our Excel worksheet.    
This basically gives the first worksheet in our Excel file a nice "cover sheet" to it.
    Range("A1").Select
    'Add OLEObject
    ActiveSheet.OLEObjects.Add(Filename:= "Some Powerpoint File.ppt", Link:=False, DisplayAsIcon :=False).Select
        
In Excel 2007, I can't do this, even if I try to insert the PowerPoint manually.
If I start from scratch, create a new Excel 2007 workbook, click on Insert \ Object \ Create From File and
select either my Excel 2003 .ppt file, or my Excel 2007 .pptx file, then I get the error:
Cannot insert object.
The irony is that I had this error about a month ago...  then it disappeared, and this Insert \ Object worked fine.
And now it's back again, and I can't get past it.
Can anyone suggest what I'm doing wrong  (other than using Excel 2007, of course) ?
Excel 2007 SP2
It's a bit of a mess  (tm)
http://www.ItsABitOfAMess.com

Related Links

VB script for Excel 2010 that will do a search for any word or phrase in my entire workbook.
Reading data from Notepad and writing into a table in Access
VBA code for saving a ppt working in debug mode,not in real run
VBA Move Paragraphs in Document Using XL
Method range of object_Worksheet failed???
Adding text labels to points on a chart.
Is it possible to set project references at run-time?
Using a condition of =H1<H2 or =H1>H2, How to format H1 instead of H2?
Conditionally formatting a looped range of cells based on value in other cell in VBA
How to get the List of Visible Items from a Pivot Field using VBA
How to run a macro when a Filter is applied on Particular Pivot Field
Add a new property to an existing object
How to Allocate Input Numeric digit to Concerned Numeric header Column
Range referencing in Copy and Paste Formats
VBA6 trouble in WINDOWS 10
VBA dynamic formula reference

Categories

MSDN
Using Forums
Windows and Windows ph...
Windows Phone Dev Center
Visual Studio Team Fou...
Architecture
HealthVault
Data Platform Developm...
Windows Live Developer
Exchange Server
Unified Communications
Windows Phone Preview ...
OneDrive Development
Skype for Business
Microsoft R
Visual C++
Visual Studio Unit Tes...
Windows App Studio Beta
Microsoft Message Queu...
Windows Desktop Sideba...
Windows Imaging Compon...
Windows Desktop SDK
Windows Desktop Winsoc...
Access for Developers
SharePoint 2010 - Setu...
Azure App Service - We...
Azure Backup
Azure Scripting and Co...
Azure DocumentDB
Azure Logic Apps
Azure Security Center
Azure IoT Hub
Azure Data Lake Analyt...
.NET Framework Class L...
Windows Presentation F...
Common Language Runtim...
Team Foundation Server...
Code Contracts
Debugger Canvas
Partnering with Microsoft
.NET Compact Framework
Visual Studio Smart De...
SQL Server Tools
SQL Server Setup & Upg...
Windows Embedded 8 Sta...
Standard 7: Tools
SQL Server 2012 High A...
Windows Forms General
SDK for Home Server 20...
Windows Live Messenger...
Bing Maps: Map Control...
Open Specifications Qu...
Exchange Server Protocols
Bing Ads API: Development
Microsoft Lync Persist...
Visual Studio & Silver...
Performance Profiling ...
Connected Services Fra...
Retired SharePoint Exc...
Retired SharePoint Ent...
Retired SharePoint Col...
Acropolis
Archived: Software Tes...
Building Windows Store...
General Troubleshootin...
Getting Started With V...
ISV Community Days
Managed Extensibility ...
Microsoft "Data Explor...
Office Development wit...
Parallel Computing Pla...
POS for .NET
Security for Azure
SyncFx - Technical Dis...
SQL Server 2014 Self-S...
SQL Server 2014 In-Mem...
UI Design for Windows ...
Visual C++ IDE
Visual Studio 2008 Exp...
Windows Events
Windows Live Data Deve...
Working with Data in W...
Windows Phone push not...
XML in Windows (MSXML ...
XNA Framework

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile