Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Macro Button Link

Can someone help me, I need to create a button to link to specific sheets in
a workbook. I don't know how to create the right code.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Macro Button Link

What exactly do you mean by "link to specific sheets"? Buttons
are linked to macros, not sheets.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Benz" wrote in message
...
Can someone help me, I need to create a button to link to
specific sheets in
a workbook. I don't know how to create the right code.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Macro Button Link

Im new at this, I need to create a button that when clicked will bring up a
disignated sheet (at the bottom).

"Chip Pearson" wrote:

What exactly do you mean by "link to specific sheets"? Buttons
are linked to macros, not sheets.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Benz" wrote in message
...
Can someone help me, I need to create a button to link to
specific sheets in
a workbook. I don't know how to create the right code.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Macro Button Link

Create a macro like

Sub ShowSheet()
ActiveWorkbook.Worksheets("Sheet2").Select
End Sub

and attach that macro to your button.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Benz" wrote in message
...
Im new at this, I need to create a button that when clicked
will bring up a
disignated sheet (at the bottom).

"Chip Pearson" wrote:

What exactly do you mean by "link to specific sheets"? Buttons
are linked to macros, not sheets.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Benz" wrote in message
...
Can someone help me, I need to create a button to link to
specific sheets in
a workbook. I don't know how to create the right code.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Macro Button Link

Ok, I created a button with specific colors using visual basic and used the
code you gave. Now when I goto insert the button I can get it to link just
fine, but it has the "default" button appearance. How do I change this?

"Chip Pearson" wrote:

Create a macro like

Sub ShowSheet()
ActiveWorkbook.Worksheets("Sheet2").Select
End Sub

and attach that macro to your button.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Benz" wrote in message
...
Im new at this, I need to create a button that when clicked
will bring up a
disignated sheet (at the bottom).

"Chip Pearson" wrote:

What exactly do you mean by "link to specific sheets"? Buttons
are linked to macros, not sheets.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Benz" wrote in message
...
Can someone help me, I need to create a button to link to
specific sheets in
a workbook. I don't know how to create the right code.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Macro Button Link

depends on which toolbar you used to produce the button.

Forms toolbar
Control Toolbox Toolbar

if the later, in design mode, right click on the Commandbutton and select
properties. then set the properties you wish.


Chips explanation would be more in line with one from the forms toolbar, but
only limited customization are available for those - you can right click on
it and select format control to see what is available.

If you want your button to look like a flower, put a picture of a flower on
your worksheet and right click on it, select assign macro and assign your
macro to it (or use any autoshape).

--
Regards,
Tom Ogilvy




"Benz" wrote:

Ok, I created a button with specific colors using visual basic and used the
code you gave. Now when I goto insert the button I can get it to link just
fine, but it has the "default" button appearance. How do I change this?

"Chip Pearson" wrote:

Create a macro like

Sub ShowSheet()
ActiveWorkbook.Worksheets("Sheet2").Select
End Sub

and attach that macro to your button.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Benz" wrote in message
...
Im new at this, I need to create a button that when clicked
will bring up a
disignated sheet (at the bottom).

"Chip Pearson" wrote:

What exactly do you mean by "link to specific sheets"? Buttons
are linked to macros, not sheets.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Benz" wrote in message
...
Can someone help me, I need to create a button to link to
specific sheets in
a workbook. I don't know how to create the right code.






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
Link button name to a cell neda5 Excel Discussion (Misc queries) 4 October 9th 07 09:44 PM
how to link a macro to a button on the excel sheet Neo Excel Discussion (Misc queries) 1 June 16th 06 05:04 PM
How do I link a macro to a customized icon button? DavidMollish Excel Programming 1 February 9th 06 02:44 PM
button link Marcel Excel Discussion (Misc queries) 1 March 17th 05 12:49 AM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM


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