LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Select Leftmost Spreadsheet

When a user saves a workbook, you can not trust the user to save while
residing in a preferred sheet. Nor can you trust that the sheets will
always have the same name as the previous workbook. I need some code
that will move my VB process to the first sheet, or leftmost, sheet in
the workbook.

Something along the lines of;

Activesheet.Next.Select or Activesheet.Previous.Select

but the problem is, I don't know how many sheets could possiblely be
in the workbook or what sheet the cursor was on when the workbook was
last saved.

Any suggestions?
 
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
Select number from leftmost column that has one widman Excel Discussion (Misc queries) 4 April 29th 10 02:05 AM
leftmost number value sandy Excel Discussion (Misc queries) 1 April 27th 10 02:53 AM
vlookup- is a must that lookup value should be the leftmost colum? hettie Excel Discussion (Misc queries) 3 September 20th 06 04:30 AM
Delete rows with specific leftmost value CLR Excel Programming 2 November 20th 04 02:02 AM
Leftmost and Rightmost Cell Lena[_3_] Excel Programming 3 April 7th 04 03:51 PM


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

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

About Us

"It's about Microsoft Excel"