Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Wanting to Create A Command Button Command

I am wanting to create a command button that once it is clicked on it will
change the active worksheet to the next worksheet in the workbook. For
example, if I am on worksheet1 and click the button it will select worksheet2
and so on. I would like to create it so I do not have to have seperate
command buttons for each page if at all possible.

Thanks

Bumper
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Wanting to Create A Command Button Command

hi bumper338

ActiveSheet.Next.Select

Why not use the shortcuts Ctrl PgUP and Ctrl Pg Down


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bumper338" wrote in message ...
I am wanting to create a command button that once it is clicked on it will
change the active worksheet to the next worksheet in the workbook. For
example, if I am on worksheet1 and click the button it will select worksheet2
and so on. I would like to create it so I do not have to have seperate
command buttons for each page if at all possible.

Thanks

Bumper

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Wanting to Create A Command Button Command

Thanks that is what I was looking for.

I don't want to use shortcuts because it will only confuse my end users.

Thanks again,

Bumper

"Ron de Bruin" wrote:

hi bumper338

ActiveSheet.Next.Select

Why not use the shortcuts Ctrl PgUP and Ctrl Pg Down


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bumper338" wrote in message ...
I am wanting to create a command button that once it is clicked on it will
change the active worksheet to the next worksheet in the workbook. For
example, if I am on worksheet1 and click the button it will select worksheet2
and so on. I would like to create it so I do not have to have seperate
command buttons for each page if at all possible.

Thanks

Bumper


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Wanting to Create A Command Button Command

Be sure that you test if the last sheet is selected before you run the code line

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bumper338" wrote in message ...
Thanks that is what I was looking for.

I don't want to use shortcuts because it will only confuse my end users.

Thanks again,

Bumper

"Ron de Bruin" wrote:

hi bumper338

ActiveSheet.Next.Select

Why not use the shortcuts Ctrl PgUP and Ctrl Pg Down


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bumper338" wrote in message ...
I am wanting to create a command button that once it is clicked on it will
change the active worksheet to the next worksheet in the workbook. For
example, if I am on worksheet1 and click the button it will select worksheet2
and so on. I would like to create it so I do not have to have seperate
command buttons for each page if at all possible.

Thanks

Bumper


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
how to create attachment command button gbpg Excel Discussion (Misc queries) 0 August 15th 07 02:44 PM
Create a command button in Excel using C# Senthil[_2_] Excel Programming 0 December 27th 06 02:52 PM
How to Create a Command Button Jason Excel Discussion (Misc queries) 1 October 12th 05 09:50 PM
How can I create a Floating Command Button Karoo News Excel Programming 1 August 19th 05 11:19 AM
Create Command Button from Code Bruce B[_2_] Excel Programming 0 July 14th 03 02:01 PM


All times are GMT +1. The time now is 03:39 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"