How to use vba checkbox to enter text in a cell

Hi,

How do use a checkbox's value (True or False) to enter certain text in a single cell?  Also, could someone please explain how to decide which controls should be used (the Active X or Form controls)?

Thanks!
Skip SleeperIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
While you can use ActiveX controls on a worksheet, they can cause problems so it's best to always use Form controls on the worksheet. You use ActiveX controls on userforms.
0
Martin LissOlder than dirtCommented:
With a Form control checkbox on a worksheet, you right click on it and select Assign Macro. You would then create a macro by that name and have Range("A1"). Value = "Some Text" as the code in the macro.
0
Harry LeeCommented:
fargus47,

I'm not so sure about Martin's comment about ActiveX controls could cause problem.

I've been using ActiveX Controls for more than 2 years, on a daily basis, and had never have any problem.

Here is the sample for the ActiveX control Check Box controlling value of a cell.

Please take a look.
CheckBox-Sample.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
I've been using ActiveX Controls for more than 2 years, on a daily basis, and had never have any problem.
Put an ActiveX listbox on a sheet, fill it with some data, and click it several times. You'll probably see the listbox change size. If you Google something like Excel ActiveX listbox problem you'll get lots of hits like this one.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.