Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 454
Default Select / Activate last Sheet

What code could I use to select cell A1 in the last sheet? I have
variable quantities of sheets and the sheet names can be changed. So I
guess its something like Worksheets(xxx).Select, but how do I know the
last number?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 454
Default Select / Activate last Sheet

Ok, just spotted an archived post, that does the trick

Dim i As Integer
i = Sheets.Count
Sheets(i).Select

Very clever

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
Activate vs Select a sheet John Broderick[_2_] Excel Programming 4 May 3rd 07 01:46 PM
.Activate vs. .Select in VBA Dave F Excel Discussion (Misc queries) 1 January 24th 07 03:41 PM
select vs. activate SP[_4_] Excel Programming 4 June 15th 05 12:27 PM
Select a sheet and activate a Window Hari Prasadh Excel Programming 6 January 31st 05 10:01 AM
select vs activate Ron de Bruin Excel Programming 0 September 9th 04 04:05 PM


All times are GMT +1. The time now is 07:01 PM.

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"