Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Moving to Next Sheet

Hi-

I am having trouble coming up with code to move to the next sheet. The
problem is the code I have is based on the Sheet# (Sheet1, Sheet2,
etc). The user may re-name these sheets and move them around the
workbook.

How do I code it so it always starts on worksheet 3, and then loops to
the next worksheet REGARDLESS OF WHAT NUMBER THE SHEET IS? (Note:
Sheets 1 & 2 are directions sheets and will always be there....that is
why I want to start with Sheet 3.)

The code I have now is this and it is not working properly:

Sheets(ActiveSheet.Index + 1).Select

Thanks In Advance!

-Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Moving to Next Sheet

activesheet.next.select

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
ps.com...
Hi-

I am having trouble coming up with code to move to the next sheet. The
problem is the code I have is based on the Sheet# (Sheet1, Sheet2,
etc). The user may re-name these sheets and move them around the
workbook.

How do I code it so it always starts on worksheet 3, and then loops to
the next worksheet REGARDLESS OF WHAT NUMBER THE SHEET IS? (Note:
Sheets 1 & 2 are directions sheets and will always be there....that is
why I want to start with Sheet 3.)

The code I have now is this and it is not working properly:

Sheets(ActiveSheet.Index + 1).Select

Thanks In Advance!

-Chris



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
formula for moving information from one sheet to another sheet Puzzled Excel Discussion (Misc queries) 4 June 6th 10 05:58 AM
moving from one sheet to another from a cell of a sheet mah1608 Excel Worksheet Functions 1 May 8th 09 06:27 AM
Moving to a new sheet. Kevin Mulvaney[_2_] Excel Worksheet Functions 6 August 22nd 08 10:34 PM
moving informatiion from one sheet to a total sheet john Excel Discussion (Misc queries) 2 January 31st 08 10:17 PM
Moving from one sheet to another JMB Excel Discussion (Misc queries) 0 March 26th 06 11:44 PM


All times are GMT +1. The time now is 03:18 PM.

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"