+ Reply to Thread
Results 1 to 11 of 11

Move cursor to specified cell on next worksheet

  1. #1
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264

    Move cursor to specified cell on next worksheet

    I have some code that unhides the next worksheet when the value 'next' is selected at the bottom of the sheet being completed.

    I would like to add some code so that the new sheet is opened and the curser is placed in the first cell that needs to be completed (E5) .

    Grateful any help

    Ed

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Is it always cell E5 or else how do you determine it is the first cell to be completed ... ?
    HTH
    Carim


    Top Excel Links

  3. #3
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Carim,

    Yes, it is always E5 - there are 7 sheets that may need completing, the next is unhidden on reaching the bottom of the active sheet, when the option to select 'next' appears through conditional formatting.

    It would be user friendly if the next sheet could then become the active sheet and the user taken to the first cell that needs completing.

    Ed

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again,
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    I am assuming your macro already takes care of unhidding the next worksheet ...

  6. #6
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Carim,

    The unhiding is already fixed - you code does exactly what I wanted (after I pasted it to the right place!)

    Many thanks - you've solved another of my problems - I think that's 3 beers I owe you now!

    Ed

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    You are welcome ...

    Thanks a lot for your kind feedback ...

  8. #8
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Carim,

    Oops, I think I may have bought you a beer too soon!

    The next sheet opens OK but the cell select does not - I think it must have been coincidence when I first tested it - any suggestions?

    Cut down version of code from sheet 'Service details' is below

    Select Case sWord
    Case "yes"
    'True or false depends on how far through the book
    Sheets("SP4 Summary").Visible = True
    Sheets("Notes - read me").Visible = True
    Sheets("service details").Visible = True
    Sheets("property details 1").Visible = True
    Sheets("property details 2").Visible = False
    Sheets("property details 7").Visible = False
    Sheets("Data 1").Visible = False
    ActiveSheet.Next.Activate 'this works OK
    Range("E5").Select ' this does not...??????

    Case Else
    .....etc


    Regards

    Ed

  9. #9
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again...

    Kind of strange ... since it working fine at my end ...
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Ahhhh,

    Activesheet.range - it makes all the difference

    Thanks Carim, the beer account is incremented again

    Ed

  11. #11
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    How do you know I was after it ...

    Thanks fo the feedback ...

+ 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