Thread: Command Button
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Command Button

Why not create the same object on each sheet??:

Sub Macro2()
For Each sh In Worksheets
sh.Activate
ActiveSheet.Buttons.Add(248.25, 75.75, 90.75, 51).Select
Selection.OnAction = "hello"
Range("A1").Select
Next
End Sub

The usual way is to put the button on a toolbar.
--
Gary''s Student - gsnu200782


"NJD" wrote:

Is there a method of making a command butoon visible on all worksheets
without creating a new object on each sheet? I've put it in a userform, but
then I cannot navigate between sheets without closing the form.