A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Search and replace in PowerPoint hyperlinks



 
 
Thread Tools Display Modes
  #1  
Old September 18th, 2009, 01:47 AM posted to microsoft.public.powerpoint
rmccafferty
external usenet poster
 
Posts: 2
Default Search and replace in PowerPoint hyperlinks

I have a very long presentation with countless hyperlinks, some of them used
over and over. I would like to do a search and replace that finds every
hyperlink to, say, Slide1 and change the hyperlink to be Slide2.

I do not see a way to do it with normal find and replace.

I know the hyperlinks are stored somewhere in PowerPoint, but cannot figure
out where, thinking that I might be able to make the changes there as long as
I can get it in a text format.

Anyone know how to do this?
  #2  
Old September 18th, 2009, 11:19 AM posted to microsoft.public.powerpoint
TAJ Simmons[_2_]
external usenet poster
 
Posts: 978
Default Search and replace in PowerPoint hyperlinks

Start here
Show me the link and let me edit it
http://www.pptfaq.com/FAQ00433.htm

cheers
TAJ Simmons
PowerPoint Master

http://www.awesomebackgrounds.com
awesome - powerpoint templates,
powerpoint backgrounds, free samples, ppt tutorials...


"rmccafferty" wrote in message
news
I have a very long presentation with countless hyperlinks, some of them
used
over and over. I would like to do a search and replace that finds every
hyperlink to, say, Slide1 and change the hyperlink to be Slide2.

I do not see a way to do it with normal find and replace.

I know the hyperlinks are stored somewhere in PowerPoint, but cannot
figure
out where, thinking that I might be able to make the changes there as long
as
I can get it in a text format.

Anyone know how to do this?



  #3  
Old September 18th, 2009, 01:05 PM posted to microsoft.public.powerpoint
John Wilson
external usenet poster
 
Posts: 6,023
Default Search and replace in PowerPoint hyperlinks

First - are you quite sure you ned to do this? Internal links to slide depend
on the slide ID which is constant. This mean if you have several links
pointing at slide 2 and you then move the slide to say slide 10 position then
the links should still work.
Assuming you DO need to swap the links try this on a copy of your
presentation.

Sub relinker()
Dim osld As Slide
Dim origtarget As Slide
Dim newtarget As Slide
Dim ohlk As Hyperlink
Dim Ipos As Integer
On Error Resume Next
'**********************
'Change the numbers here
Set origtarget = ActivePresentation.Slides(2)
Set newtarget = ActivePresentation.Slides(10)
'**********************
For Each osld In ActivePresentation.Slides
For Each ohlk In osld.Hyperlinks
If ohlk.SubAddress "" Then
Ipos = InStr(ohlk.SubAddress, ",")
If Val(Left$(ohlk.SubAddress, Ipos - 1)) _
= origtarget.SlideID Then
ohlk.SubAddress = CStr(newtarget.SlideID) & "," & _
CStr(newtarget.SlideIndex) & "," & newtarget.Name
End If ' correct link to change
End If ' has subaddress (internal)
Next ohlk
Next osld
End Sub

How to use code
http://www.pptalchemy.co.uk/vba.html
--
john ATSIGN PPTAlchemy.co.uk

Free PPT Hints, Tips and Tutorials
http://www.pptalchemy.co.uk/powerpoi...tutorials.html
PPTLive Atlanta Oct 11-14 2009




"rmccafferty" wrote:

I have a very long presentation with countless hyperlinks, some of them used
over and over. I would like to do a search and replace that finds every
hyperlink to, say, Slide1 and change the hyperlink to be Slide2.

I do not see a way to do it with normal find and replace.

I know the hyperlinks are stored somewhere in PowerPoint, but cannot figure
out where, thinking that I might be able to make the changes there as long as
I can get it in a text format.

Anyone know how to do this?

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:41 PM.


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