View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Ian[_17_] Ian[_17_] is offline
external usenet poster
 
Posts: 11
Default Calling command button from another sheet


thanks for your help.
cheers

On Wed, 12 Apr 2006 09:16:02 -0700, Jim Thomlinson
wrote:

Assuming you have a button embeded in sheet1 (code name) called
CommandButton1...

goto to the code for the buttons and change it to Public...
Public Sub CommandButton1_Click()

Now in a sub in sheet 2 you should be able to reference the button using
Sub TestButtons
Call Sheet1.CommandButton1_Click
end sub