+ Reply to Thread
Results 1 to 3 of 3

Macro To Send User to WorkSheet name that is the value of a cell

  1. #1
    Registered User
    Join Date
    12-21-2020
    Location
    Virginia, US
    MS-Off Ver
    365
    Posts
    8

    Question Macro To Send User to WorkSheet name that is the value of a cell

    Hello. I am trying to write a macro that will will send the user to a WorkSheet name where the worksheet name is the value in a specific cell.
    If I already knew the sheetname, I know I can use something like:
    Sheets("Sheet1").Select
    But the sheetname will be cell the value that is in b1, but and that value (name) that appears in b1 may be different each time the macro is run.
    So trying to have the macro check for the value in b1 and then send user to the sheetname that equals that value.
    Appreciate any suggestions. Thanks very much!
    - Mike G

  2. #2
    Forum Contributor
    Join Date
    12-08-2020
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Macro To Send User to WorkSheet name that is the value of a cell

    Sub gotoSht()
    addr = Sheets("Sheet1").Range("b1")
    Sheets(addr).Select
    End Sub

  3. #3
    Registered User
    Join Date
    12-21-2020
    Location
    Virginia, US
    MS-Off Ver
    365
    Posts
    8

    Thumbs up Re: Macro To Send User to WorkSheet name that is the value of a cell

    Thank you, chronjy.
    This is perfect!
    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If a cell contains a value - user is moved to a different worksheet Macro
    By kingy12321 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-27-2020, 09:56 AM
  2. send data from worksheet to user form
    By msaric in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2013, 04:08 AM
  3. Macro to prompt user to check Subject when send button is clicked
    By hotmailliw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2013, 10:01 AM
  4. [SOLVED] Press a button to SEND data from one worksheet to another based on conditions set by user
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-21-2012, 10:30 AM
  5. Macro to send email based on lookup of user column
    By ccomito1223 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2010, 03:19 AM
  6. [SOLVED] How do I send a macro and toolbar to another user?
    By intheory in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2005, 03:05 PM
  7. Replies: 1
    Last Post: 08-16-2005, 02:05 PM

Tags for this Thread

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