G
Geoff Cox
Hello,
I am wondering whether it is possible to edit this macro, which adds 1
hyperlink, so that I can use it to add a series of hyperlinks to a
series of .ppt file?
This on has the text "link1" and links to the file called "file1.ppt"
Can I cut and paste text into the macro so that it creates the
following?
link2 linked to file2.ppt
link3 linked to file3.ppt
link4 linked to file4.ppt
etc
Cheers
Geoff
Sub link()
'
' Macro recorded 03/04/2006 by Geoff Cox
'
End Sub
Sub linkadded()
'
' Macro recorded 03/04/2006 by Geoff Cox
'
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1,
Length:=4).Select
ActiveWindow.Selection.TextRange.Text = "link"
With
ActiveWindow.Selection.TextRange.ActionSettings(ppMouseClick).Hyperlink
.Address = "file1.ppt"
.SubAddress = ""
.ScreenTip = ""
.TextToDisplay = "link1"
End With
ActiveWindow.Selection.TextRange.Characters(Start:=5,
Length:=0).Select
End Sub
I am wondering whether it is possible to edit this macro, which adds 1
hyperlink, so that I can use it to add a series of hyperlinks to a
series of .ppt file?
This on has the text "link1" and links to the file called "file1.ppt"
Can I cut and paste text into the macro so that it creates the
following?
link2 linked to file2.ppt
link3 linked to file3.ppt
link4 linked to file4.ppt
etc
Cheers
Geoff
Sub link()
'
' Macro recorded 03/04/2006 by Geoff Cox
'
End Sub
Sub linkadded()
'
' Macro recorded 03/04/2006 by Geoff Cox
'
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1,
Length:=4).Select
ActiveWindow.Selection.TextRange.Text = "link"
With
ActiveWindow.Selection.TextRange.ActionSettings(ppMouseClick).Hyperlink
.Address = "file1.ppt"
.SubAddress = ""
.ScreenTip = ""
.TextToDisplay = "link1"
End With
ActiveWindow.Selection.TextRange.Characters(Start:=5,
Length:=0).Select
End Sub