hi folks,
I have the following code that I want to attach to a button, but am at a loss of how to?
Sub sbClearCellsOnlyData()
Range("A1:D5").ClearContents
End Sub
Nick
hi folks,
I have the following code that I want to attach to a button, but am at a loss of how to?
Sub sbClearCellsOnlyData()
Range("A1:D5").ClearContents
End Sub
Nick
you could do it with a shape....insert a shape (Box, Oval). then right click on the shape and "Assign Macro". A list of macros will come up and choose your macro...This is for 2010....not sure in 2003....
Ernest
Please consider adding a * if I helped
Nothing drives me crazy - I'm always close enough to walk....
Thanks, that's sorted it
glad I could help....
you just create a button from the forms tool bar
right click it assign macro
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks