Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Code for Command Buttons

I want my command button to take me to a cell in a different sheet, same
excel file. For example, in sheet one, i have 9 command buttons. First
Command Button takes me to cell "A1" in sheet 2, second takes me to cell "A
150" in sheet 2, etc. What is the code for the command button to do this? I
know the code for the button to take me to a cell in the same sheet, just not
to a cell in a different sheet. Please help!

Thank You,
Ayman Al-Qasem
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Code for Command Buttons

Try something like this:

Sheets("Sheet2").Select
Range("A150").Select

--
Kevin Backmann


"Ayman" wrote:

I want my command button to take me to a cell in a different sheet, same
excel file. For example, in sheet one, i have 9 command buttons. First
Command Button takes me to cell "A1" in sheet 2, second takes me to cell "A
150" in sheet 2, etc. What is the code for the command button to do this? I
know the code for the button to take me to a cell in the same sheet, just not
to a cell in a different sheet. Please help!

Thank You,
Ayman Al-Qasem

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
Command Buttons Hoyas07 Excel Discussion (Misc queries) 2 February 11th 08 03:42 PM
Excel Command Buttons Newbee Excel Worksheet Functions 4 November 21st 06 07:03 PM
Command Buttons msals22 Excel Discussion (Misc queries) 1 June 22nd 06 01:33 AM
Help with command buttons Danno Excel Worksheet Functions 1 October 7th 05 10:32 PM
command buttons Natalie Excel Worksheet Functions 1 March 7th 05 01:45 PM


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