+ Reply to Thread
Results 1 to 3 of 3

Jump between sheets

Hybrid View

Guest Jump between sheets 06-08-2005, 05:05 PM
Guest RE: Jump between sheets 06-08-2005, 06:05 PM
Guest Re: Jump between sheets 06-08-2005, 06:05 PM
  1. #1
    Graham Haughs
    Guest

    Jump between sheets

    Is it possible in a multi-sheet workbook to create a procedure to jump
    back to the sheet and the place you were in previously, ie without using
    the tabs to move about. If you were in sheet 6 for example and moved by
    a macro to Sheet 20, is there a way to identify that you have just been
    in sheet 6 and use a macro to be linked to a command button for example
    to jump back to it. Hope this is well enough explained and I would be
    grateful for any guidance.

    Kind regards
    Graham Haughs
    Turriff, Scotland

  2. #2
    bigwheel
    Guest

    RE: Jump between sheets

    This is the way I do it:-

    ' Switch to/from summary sheet
    '

    If ActiveSheet.Name = "Summary" Then
    oldsheet = Worksheets("Summary").Range("Z1").Value
    Sheets(oldsheet).Select
    Else
    oldsheet = ActiveSheet.Name
    Sheets("Summary").Select
    Worksheets("Summary").Range("Z1").Value = oldsheet
    End If


    "Graham Haughs" wrote:

    > Is it possible in a multi-sheet workbook to create a procedure to jump
    > back to the sheet and the place you were in previously, ie without using
    > the tabs to move about. If you were in sheet 6 for example and moved by
    > a macro to Sheet 20, is there a way to identify that you have just been
    > in sheet 6 and use a macro to be linked to a command button for example
    > to jump back to it. Hope this is well enough explained and I would be
    > grateful for any guidance.
    >
    > Kind regards
    > Graham Haughs
    > Turriff, Scotland
    >


  3. #3
    Dave Peterson
    Guest

    Re: Jump between sheets

    Maybe you could use Jan Karel Pieterse's utility:
    http://www.jkp-ads.com/Download.htm
    Look for GoBack.Zip



    Graham Haughs wrote:
    >
    > Is it possible in a multi-sheet workbook to create a procedure to jump
    > back to the sheet and the place you were in previously, ie without using
    > the tabs to move about. If you were in sheet 6 for example and moved by
    > a macro to Sheet 20, is there a way to identify that you have just been
    > in sheet 6 and use a macro to be linked to a command button for example
    > to jump back to it. Hope this is well enough explained and I would be
    > grateful for any guidance.
    >
    > Kind regards
    > Graham Haughs
    > Turriff, Scotland


    --

    Dave Peterson

+ 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