PC Review


Reply
Thread Tools Rate Thread

Broken links in powerpoint deck...huge file

 
 
VBA Novice
Guest
Posts: n/a
 
      19th Sep 2006
Hey Gurus,

I've been searching high and low for a way to get my file
(approximately 400 slides with lots of hyperlinks) to save without
breaking most of my hyperlinks. I came across the following VBA at
Bill Dilworth's site: http://billdilworth.mvps.org/UnlimitedLinks.htm .
Although I cannot seem to figure out how to get the following code to
work. Reason being I am not proficient (novice level even) at using
VBA, but believe I will need to change (" .Hyperlink.Address =
"http://" & _" ) this line of code to reference a slide. How does one
do this? Or is there an easier way in PPT XP to achieve a greater # of
hyperlinks than 64kb?

Thanks,
The Novice

****************************************VBA Code
Below********************************

Option Explicit

Sub Fission(oBoom As Shape)
Dim vSaved As Boolean
vSaved = ActivePresentation.Saved

On Error Resume Next

With oBoom.ActionSettings(ppMouseClick)
.Hyperlink.Address = "http://" & _
oBoom.TextFrame.TextRange.Text
.Hyperlink.Follow
.Hyperlink.Delete
.Run = "Fission"
.Action = ppActionRunMacro
End With


ActivePresentation.Saved = vSaved

End Sub

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBXaWxzb24=?=
Guest
Posts: n/a
 
      19th Sep 2006
I think Bill's code is for external hyperlinks

Try this code
***********

Sub hyper(oshp As Shape)
On Error GoTo errorhandler
Dim stext As Integer
If oshp.HasTextFrame And oshp.TextFrame.HasText Then
stext = Val(oshp.TextFrame.TextRange)
ActivePresentation.SlideShowWindow.View.GotoSlide (stext)
End If
Exit Sub
errorhandler:
MsgBox ("Sorry, there's been an error")
End Sub

**************

Insert a shape or button for the hyperlink and add text = the number of the
slide to go to eg "8". In action settings give it a mouse click or mouse over
action setting of run macro "hyper"

Did that answer the question / help?
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html


"VBA Novice" wrote:

> Hey Gurus,
>
> I've been searching high and low for a way to get my file
> (approximately 400 slides with lots of hyperlinks) to save without
> breaking most of my hyperlinks. I came across the following VBA at
> Bill Dilworth's site: http://billdilworth.mvps.org/UnlimitedLinks.htm .
> Although I cannot seem to figure out how to get the following code to
> work. Reason being I am not proficient (novice level even) at using
> VBA, but believe I will need to change (" .Hyperlink.Address =
> "http://" & _" ) this line of code to reference a slide. How does one
> do this? Or is there an easier way in PPT XP to achieve a greater # of
> hyperlinks than 64kb?
>
> Thanks,
> The Novice
>
> ****************************************VBA Code
> Below********************************
>
> Option Explicit
>
> Sub Fission(oBoom As Shape)
> Dim vSaved As Boolean
> vSaved = ActivePresentation.Saved
>
> On Error Resume Next
>
> With oBoom.ActionSettings(ppMouseClick)
> .Hyperlink.Address = "http://" & _
> oBoom.TextFrame.TextRange.Text
> .Hyperlink.Follow
> .Hyperlink.Delete
> .Run = "Fission"
> .Action = ppActionRunMacro
> End With
>
>
> ActivePresentation.Saved = vSaved
>
> End Sub
>
>

 
Reply With Quote
 
VBA Novice
Guest
Posts: n/a
 
      19th Sep 2006
Hey John,

It works...only catch is it makes my ppt deck heavy. Guess that's what
I get for using it on 279 slides as a reference code....

Thanks for the insight...really helpful...

John Wilson wrote:
> I think Bill's code is for external hyperlinks
>
> Try this code
> ***********
>
> Sub hyper(oshp As Shape)
> On Error GoTo errorhandler
> Dim stext As Integer
> If oshp.HasTextFrame And oshp.TextFrame.HasText Then
> stext = Val(oshp.TextFrame.TextRange)
> ActivePresentation.SlideShowWindow.View.GotoSlide (stext)
> End If
> Exit Sub
> errorhandler:
> MsgBox ("Sorry, there's been an error")
> End Sub
>
> **************
>
> Insert a shape or button for the hyperlink and add text = the number of the
> slide to go to eg "8". In action settings give it a mouse click or mouse over
> action setting of run macro "hyper"
>
> Did that answer the question / help?
> _____________________________
> John Wilson
> Microsoft Certified Office Specialist
> http://www.technologytrish.co.uk/ppttipshome.html
>
>
> "VBA Novice" wrote:
>
> > Hey Gurus,
> >
> > I've been searching high and low for a way to get my file
> > (approximately 400 slides with lots of hyperlinks) to save without
> > breaking most of my hyperlinks. I came across the following VBA at
> > Bill Dilworth's site: http://billdilworth.mvps.org/UnlimitedLinks.htm .
> > Although I cannot seem to figure out how to get the following code to
> > work. Reason being I am not proficient (novice level even) at using
> > VBA, but believe I will need to change (" .Hyperlink.Address =
> > "http://" & _" ) this line of code to reference a slide. How does one
> > do this? Or is there an easier way in PPT XP to achieve a greater # of
> > hyperlinks than 64kb?
> >
> > Thanks,
> > The Novice
> >
> > ****************************************VBA Code
> > Below********************************
> >
> > Option Explicit
> >
> > Sub Fission(oBoom As Shape)
> > Dim vSaved As Boolean
> > vSaved = ActivePresentation.Saved
> >
> > On Error Resume Next
> >
> > With oBoom.ActionSettings(ppMouseClick)
> > .Hyperlink.Address = "http://" & _
> > oBoom.TextFrame.TextRange.Text
> > .Hyperlink.Follow
> > .Hyperlink.Delete
> > .Run = "Fission"
> > .Action = ppActionRunMacro
> > End With
> >
> >
> > ActivePresentation.Saved = vSaved
> >
> > End Sub
> >
> >


 
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
mac powerpoint sound links broken =?Utf-8?B?Y2hlcnls?= Microsoft Powerpoint 3 26th Feb 2007 04:25 PM
How I cant save a password for a PowerPoint huge file =263 MB ? =?Utf-8?B?TmVvTWU=?= Microsoft Powerpoint 5 16th May 2005 02:28 PM
Saving in Powerpoint 2003, Huge File Size =?Utf-8?B?S2F3YXNha2lndHI=?= Microsoft Powerpoint 1 1st Apr 2004 02:49 PM
What is powerpoint deck? =?Utf-8?B?SnVsaWVp?= Microsoft Powerpoint 3 26th Jan 2004 02:15 PM
Huge Powerpoint file Mike Pitches Microsoft Powerpoint 3 17th Aug 2003 03:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 AM.