+ Reply to Thread
Results 1 to 7 of 7

Return to sheet you were on before you ran macro

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Return to sheet you were on before you ran macro

    I have a hyperlink that takes the user to a help sheet. The hyperlink can be activated from a number of difference sheets. Once the user reaches the instruciton sheet they need to be able to scroll around to read it fully but they will not need to enter any data or activate any cells. How can I get it so once they have read the instrucditons they can return to the sheet they started from?

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Return to sheet you were on before you ran macro

    do you use hyperlinks or macros ?
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Return to sheet you were on before you ran macro

    Hi, patel45,

    I have a hyperlink that takes the user to a help sheet.
    Does that answer your question?

    @BRISBANEBOB:
    I only know of VBA to take care of that issue. Have a try with this which you would need to copy into ThisWorkbook:
    Please Login or Register  to view this content.
    You would need to adapt the name of the instructions sheet accordingly.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Return to sheet you were on before you ran macro

    Hi
    thanks for your reponse. I've used hyperlinks but happy to use code if necessary

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Return to sheet you were on before you ran macro

    Hi Holger

    I'm lost! Which are the shhet names i need to change and how is the code triggered once the user has finished reading the instructions?

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Return to sheet you were on before you ran macro

    Hi, BRISBANEBOB,

    the sheet name is the Constant being used in both procedures (here: Instruction) which you would need to adjust to your needs.

    I placed annother hyperlink into the sheet Instruction which after being pressed gets you back into the sheet you went into the sheet Instruction. I slightly altered the code for FollowHyperlink:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Attached Files Attached Files

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Return to sheet you were on before you ran macro

    You can add a shape/forms buttons to the help sheet with the following macro assigned.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

+ 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. [SOLVED] Macro (Or Function) To Search Sheet, Return Whole Row
    By CVinje in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2012, 05:43 PM
  2. [SOLVED] When sheet is activated, execute macro in other sheet and return to sheet
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2012, 10:50 AM
  3. Return to Sheet Macro
    By andrew8008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2007, 12:38 PM
  4. [SOLVED] Macro to return to Current Sheet and Cell
    By Steve Klenner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 10:05 AM
  5. Return to Current Sheet in On (sheet activate) event macro
    By Paul Moles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2005, 11:06 AM

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