Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making code accessible to many buttons

I am trying to create several sheets with identical
buttons. I want the button to do the exact same thing
from each sheet. How do I make this code be in some
overhead location that any of the buttons can call it.
Right now the code seems to only be associated with the
one button on the one sheet. Only that button will call
the code. The other buttons do nothing.

Thoughts?
Does this make sense?

Thanks

S.S.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Making code accessible to many buttons

Put your code in a regular code module. If your buttons are from the
Forms toolbar, right-click the buttons and choose Assign macro,
choosing your code. If your buttons are from the Controls toolbar,
call your code from the Button_Click() event.

In article ,
"S. S." wrote:

I am trying to create several sheets with identical
buttons. I want the button to do the exact same thing
from each sheet. How do I make this code be in some
overhead location that any of the buttons can call it.
Right now the code seems to only be associated with the
one button on the one sheet. Only that button will call
the code. The other buttons do nothing.

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
form option buttons - how can I make them accessible? lynn Excel Discussion (Misc queries) 1 February 10th 10 02:59 PM
Making A Code natei6 Excel Worksheet Functions 4 February 23rd 06 08:04 AM
making switchboards and linking buttons in excel mohammad New Users to Excel 1 December 4th 05 09:19 PM
Making Excel accessible on our server smlyday Excel Discussion (Misc queries) 1 November 29th 05 09:28 PM
Making Command Buttons Rick[_17_] Excel Programming 2 October 15th 03 02:03 AM


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