+ Reply to Thread
Results 1 to 3 of 3

Followhyperlink method only in Worksheet?

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2003
    Posts
    8

    Followhyperlink method only in Worksheet?

    I am using the following code to execute code one the hyperlink is selected:

    Please Login or Register  to view this content.
    Everything works great, but when I start a new worksheet in the same workbook, I have to copy the code over to the new worksheet in VBA. Is there any way to use this code for ALL worksheets without having to copy it into every worksheet in VBA?
    Last edited by chevelle8719; 05-25-2010 at 11:36 AM.

  2. #2
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: Followhyperlink method only in Worksheet?

    Have you tried adding it to "ThisWorkbook" instead?

    Please Login or Register  to view this content.
    _______________________________________________
    Remember:

    Read the rules!

    Use code tags! Place [CODE] before the first line of code and [/CODE] after the last line of code.

    Mark your post [SOLVED] if it has been answered satisfactorily.
    To do this, click EDIT in your original post, click GO ADVANCED and set the PREFIX. It helps everybody!

    If you are approve (or disapprove) of any members response to your problem, please click the star icon underneath their post and comment. It matters.

  3. #3
    Registered User
    Join Date
    05-17-2010
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Followhyperlink method only in Worksheet?

    WOW...it's funny how one little work can make a big difference.

    Thanks A LOT!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1