Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

Run-Time error 5824 - insufficient memory or disk space.

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general
View previous topic :: View next topic  
Author Message
DaveW
Guest





PostPosted: Thu Dec 20, 2007 1:38 pm    Post subject: Run-Time error 5824 - insufficient memory or disk space. Reply with quote

I have a VB macro which converts text with a document extension to hyperlinks.
I keep getting the above run-Time error when I pass the text variable
through as a parameter. I have checked the parameter variable is being passed
through correctly. Can anybody give me clue to why this has started to
happen in Office2007?
a snippet from the code below the second Selection.Hyper...statemement
works the first causes the error:-

If LinkType = "H" Then
Selection.Hyperlinks.Add Anchor:=Selection.Range,
Address:=FileString, TextToDisplay:=FileString
Selection.Hyperlinks.Add Anchor:=Selection.Range,
Address:="c:\thisworks.txt", TextToDisplay:="thisworks"



--
Many Thanks
Back to top
Google
Sponsor





PostPosted: Thu Dec 20, 2007 1:38 pm    Post subject: Advertisement

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum