Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Hugnuffer
 
Posts: n/a
Default How do I write a macro for a button to send user to a custom view?

I am setting up an index worksheet with a list of different areas on the main
worksheet. I have inserted buttons on the list, but don't know the visual
basic to get them to send the user to the specific custom views for each area
of the other worksheet.
  #2   Report Post  
StinkeyPete
 
Posts: n/a
Default

Use the macro recorder and copy and paste the code from the macro you
recorded into the CommandButton1_Click() event of the button.

"Hugnuffer" wrote:

I am setting up an index worksheet with a list of different areas on the main
worksheet. I have inserted buttons on the list, but don't know the visual
basic to get them to send the user to the specific custom views for each area
of the other worksheet.

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
in this version I can not attach a Macro to a Button Hussam Bachat Excel Discussion (Misc queries) 3 July 13th 05 09:08 AM
Send Excel data to Access through button julesferreira Excel Discussion (Misc queries) 1 June 17th 05 07:30 PM
how to run macro in userform button khurram saddique Excel Discussion (Misc queries) 2 March 4th 05 12:47 PM
Macro to simply bring up the Find dialogue box?? marika1981 Excel Discussion (Misc queries) 14 January 14th 05 10:47 PM
Destroy command button with a Macro? grasping@straws Excel Discussion (Misc queries) 3 December 22nd 04 02:30 PM


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