#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Buttons

Okay, I tried following the instructions in the Help file, but to n
avail. What I'm trying to do is assign a macro to a command butto
that will let me go from one tab of the file to another. Like goin
from Sheet 1 to Sheet 15. Any help would be appreciated.


--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Buttons

you didn't mention where you got stuck - is it with the macro or with the
button?

a macro to take you from sheet 1 to sheet 15 would be

sub movesheets()

Sheets("sheet15").activate

end sub

this macro will need to be copied & pasted into a module sheet of the
workbook (right mouse click on a sheet tab, choose view code ... choose
insert / module - copy & paste code in, close VBE window)

to create a button to take you there - i personally like using the
autoshapes on the drawing toolbar, click on the autoshape you want, click
somewhere on sheet 1 - there's the button - to add text, right mouse click
on it and choose "add text", to assign it to the macro, right mouse click on
it again and choose "assign macro" ... find movesheets in the list and click
OK

let us know how you go

Cheers
JulieD

"bfriederichs " wrote in
message ...
Okay, I tried following the instructions in the Help file, but to no
avail. What I'm trying to do is assign a macro to a command button
that will let me go from one tab of the file to another. Like going
from Sheet 1 to Sheet 15. Any help would be appreciated.
B


---
Message posted from http://www.ExcelForum.com/



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
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
Form buttons vs. ActiveX Buttons GeorgeJ Excel Discussion (Misc queries) 3 August 11th 07 09:02 PM
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM
pivot chart is it possible to hide individual field buttons? Layout Field buttons Matt Charts and Charting in Excel 0 August 27th 06 02:57 PM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM


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