PC Review


Reply
Thread Tools Rate Thread

2007: VBA Refresh Links

 
 
thomas müller
Guest
Posts: n/a
 
      22nd Nov 2008
Hello,

I have a PPT presentation with several Charts linked with excel. Im
refreshing the Links mauall now.

I Tried this code to refrseh them automatically, but i got an error
message (Next oshp: "Next without for":

Sub linkupdate()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoLinkedOLEObject Then
oshp.LinkFormat.Update
Next oshp
Next osld
End Sub

Can anyone help me or provide a working solution? Im using PPT 2007

Thanks in advance

Thomas
 
Reply With Quote
 
 
 
 
Shyam Pillai
Guest
Posts: n/a
 
      22nd Nov 2008
Sub linkupdate()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoLinkedOLEObject Then
oshp.LinkFormat.Update
End If
Next oshp
Next osld
End Sub


Regards,
Shyam Pillai

Image Importer Wizard: http://skp.mvps.org/iiw.htm



"thomas müller" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello,
>
> I have a PPT presentation with several Charts linked with excel. Im
> refreshing the Links mauall now.
>
> I Tried this code to refrseh them automatically, but i got an error
> message (Next oshp: "Next without for":
>
> Sub linkupdate()
> Dim osld As Slide
> Dim oshp As Shape
> For Each osld In ActivePresentation.Slides
> For Each oshp In osld.Shapes
> If oshp.Type = msoLinkedOLEObject Then
> oshp.LinkFormat.Update
> Next oshp
> Next osld
> End Sub
>
> Can anyone help me or provide a working solution? Im using PPT 2007
>
> Thanks in advance
>
> Thomas


 
Reply With Quote
 
thomas müller
Guest
Posts: n/a
 
      23rd Nov 2008
Hello Shyam,

thanks a lot.

Thomas


Shyam Pillai schrieb:
> Sub linkupdate()
> Dim osld As Slide
> Dim oshp As Shape
> For Each osld In ActivePresentation.Slides
> For Each oshp In osld.Shapes
> If oshp.Type = msoLinkedOLEObject Then
> oshp.LinkFormat.Update
> End If
> Next oshp
> Next osld
> End Sub
>
>
> Regards,
> Shyam Pillai
>
> Image Importer Wizard: http://skp.mvps.org/iiw.htm
>
>
>
> "thomas müller" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hello,
>>
>> I have a PPT presentation with several Charts linked with excel. Im
>> refreshing the Links mauall now.
>>
>> I Tried this code to refrseh them automatically, but i got an error
>> message (Next oshp: "Next without for":
>>
>> Sub linkupdate()
>> Dim osld As Slide
>> Dim oshp As Shape
>> For Each osld In ActivePresentation.Slides
>> For Each oshp In osld.Shapes
>> If oshp.Type = msoLinkedOLEObject Then
>> oshp.LinkFormat.Update
>> Next oshp
>> Next osld
>> End Sub
>>
>> Can anyone help me or provide a working solution? Im using PPT 2007
>>
>> Thanks in advance
>>
>> Thomas

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh all links carpoto Microsoft Powerpoint 2 9th Jun 2011 03:22 AM
PPT 2007 links to Excel 2007 - how to stop update links at startup?the second try CordHinrichs Microsoft Powerpoint 14 17th Jul 2009 06:40 PM
PPT 2007 links to Excel 2007 - how to stop update links at startup? Steve Harper Microsoft Powerpoint 7 5th Sep 2008 02:13 PM
refresh links herbslc Microsoft Powerpoint 3 29th Aug 2008 10:01 PM
>> Refresh links with SQL =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Access VBA Modules 3 28th Feb 2006 09:33 PM


Features
 

Advertising
 

Newsgroups
 


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