Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linking powerpoint to Excel

Hi,

I am trying to change the link in a powerpoint object
to a excel file through VBA. The excel file is just
created and not saved. The code follows:

For Each s1 In ppobj.ActivePresentation.Slides
For Each s In s1.Shapes
If s.Type = msoLinkedOLEObject Then
With s.LinkFormat
.SourceFullName = lspresdef & ".xls"
.Update
End With
End If
Next
Next

This gives an error in sourcefullname. If i give a saved
filename with full path it works fine. Can someone help me
in changing the link to an unsaved excel file??

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linking powerpoint to Excel

I think the problem is due to your unsaved excel file. When you link to a
file, the file should exist.
Maybe have a look at www.take-off.as/datapoint
There you'll find a powerpoint addon that links powerpoint dynamically to
text files, databases and excel files.
Kurt.

"j" wrote in message
...
Hi,

I am trying to change the link in a powerpoint object
to a excel file through VBA. The excel file is just
created and not saved. The code follows:

For Each s1 In ppobj.ActivePresentation.Slides
For Each s In s1.Shapes
If s.Type = msoLinkedOLEObject Then
With s.LinkFormat
.SourceFullName = lspresdef & ".xls"
.Update
End With
End If
Next
Next

This gives an error in sourcefullname. If i give a saved
filename with full path it works fine. Can someone help me
in changing the link to an unsaved excel file??



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Excel in Powerpoint Chantal Excel Discussion (Misc queries) 1 November 2nd 09 11:15 PM
Excel - PowerPoint linking Problem Loopi Excel Discussion (Misc queries) 0 August 3rd 08 05:35 PM
Linking Excel to Powerpoint John Moore Excel Discussion (Misc queries) 2 November 6th 07 09:40 PM
Linking powerpoint chart to excel pooja Excel Discussion (Misc queries) 0 September 6th 06 04:20 PM
Linking Excel to Powerpoint across the net? Edward Owen Links and Linking in Excel 1 June 21st 06 11:40 PM


All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"