+ Reply to Thread
Results 1 to 3 of 3

VBA Hyperlinking to user input worksheet

  1. #1
    Registered User
    Join Date
    09-18-2006
    Posts
    14

    VBA Hyperlinking to user input worksheet

    Hello,
    I have a macro that creates a new worksheet based off of a user input held in the variable userworksheet (DIM userworksheet as string). For example: the user inputs worksheet1 and then a new sheet is created with that name. So I need the VBA command that will create a hyperlink in the active cell of another worksheet using the variable userworksheet.

    Can anybody help?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA Hyperlinking to user input worksheet

    Here's a macro showing how to create a "table of contents" of hyperlinks for all the worksheets in a workbook. The syntax you see here should give you what you need to tweak your existing macro to utilize your variable to add a hyperlink in the same manner.
    Last edited by JBeaucaire; 01-06-2011 at 12:49 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-18-2006
    Posts
    14

    Re: VBA Hyperlinking to user input worksheet

    Quote Originally Posted by JBeaucaire View Post
    Here's a macro showing how to create a "table of contents" of hyperlinks for all the worksheets in a workbook. The syntax you see here should give you want you need to tweak your existing macro to utilize your variable to add a hyperlink in the same manner.
    Perfect!! Thank you.

+ 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