Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

Need troubleshooting help with 3 lines of VBA code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
padshall - 25 Jun 2007 14:07 GMT
This crashes Word 2007 even though it works with previous versions.  Current
doc is just standing for the name of the currently active document.

Sub FollowLink()
   Selection.Hyperlinks(1).Follow
   Documents("current.doc").Close
End Sub

Any one got any idea why?
Shauna Kelly - 25 Jun 2007 15:24 GMT
Hi

It works for me. If you step through the code, on which line do you get the
error? What is the error message? And where is the insertion point when you
begin to run the code?

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word

> This crashes Word 2007 even though it works with previous versions.
> Current
[quoted text clipped - 6 lines]
>
> Any one got any idea why?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.