Using Buttons

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I like to know how to use a button in a spreadsheet (rather than having to
enter a value) that when clicked on would equal one (1) and have a default of
zero.
 
Hi
put something like the following code behind the button:

with activesheet.range("A1")
.value=-(.value)+1
end with


this toggles between 0 and 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top