Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Return User to Last Active Worksheet

Howdy,

Here is my issue. I have workbook with 30 some odd sheets in it. Each sheet
has a button that sends the user to a "Specs Sheet" that has all the averages
on it. What I need to know, is what code is needed for a button to send the
user to the last active worksheet that he or she was on. Any help is
appreciated. Sorry I don't have a code, I really never have come across an
issue of this type.
--
Silverbird Designs @ www.silverbirddesigns.com

Fighting Texas Aggie Class of 2009
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Return User to Last Active Worksheet

Create a public variable and save the worksheet name when that button is
hit. Then just pick up that value when you need to return.

Public SheetName As String

Public Sub SpecsSheet()

SheetName = Activesheet.Name
Worksheets("Specs Sheet").Activate
End Sub

Public Sub Return()
Worksheets(SheetName).Activate
End Sub

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Texas Aggie" wrote in message
...
Howdy,

Here is my issue. I have workbook with 30 some odd sheets in it. Each
sheet
has a button that sends the user to a "Specs Sheet" that has all the
averages
on it. What I need to know, is what code is needed for a button to send
the
user to the last active worksheet that he or she was on. Any help is
appreciated. Sorry I don't have a code, I really never have come across an
issue of this type.
--
Silverbird Designs @ www.silverbirddesigns.com

Fighting Texas Aggie Class of 2009



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return to active cell Alex.W Excel Discussion (Misc queries) 2 June 19th 07 11:35 PM
Displaying data in user form from active worksheet Barb Reinhardt Excel Programming 3 October 16th 06 04:20 PM
Basic Question - How do I return the worksheet number of the active worksheet? Regnab Excel Programming 2 May 17th 06 03:02 AM
how can I return the active row and active column? Greg Excel Programming 0 February 3rd 05 07:38 PM
Return Row Heights for Rows in Active Worksheet - an example DataFreakFromUtah Excel Programming 2 July 23rd 04 03:22 PM


All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"