Programming a toggle button

F

Frances

I am producing a worksheet form and added a toggle button that when it is
clicked, I want it to automatically fill in specific cells with "na". (The
process is to help end users skip over areas that are not applicable. I am
using an activeX toggle button control. I thought to use a checkbox but it
is too small for some of my end users to see. I don't know how to do this in
VB. Can someone help me out here?

Thanks
 
G

Gord Dibben

Toggle denotes changing state forth and back.

Sounds like you just want a single use button to add n/a to a range of
cells.

Define the specific cells range then

Sub Add_na()
Range("myrange").Value = "na"
End Sub

Assign to a button from the Forms Toolbar


Gord Dibben MS Excel MVP
 
F

Frances

Thanks for the help. Will work on it today. Let's hope I can program my
first button. Frances
 

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

Top