Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to change the value of a cell using a checkbox

Status
Not open for further replies.

IS300

MIS
Oct 29, 2003
121
CA
Hello,

I have a cell that contains one value (A1). In the one beside it, I have put a checkbox (A2). In the third column (A3), I want that to take the value of A1 should A2 be checked.

Something like IF A2 = True, Then A3 = A1.

Any ideas? It seems really simple, but it has been a few years since I've used VBA.

Thanks
 
I don't think they are linked. I am trying to do this in VBA. Is there an easier way to do this withing using VBA?
 
In the Worksheet Object (right click sheet tab) paste this code
Code:
Private Sub CheckBox1_Click()
  with checkbox1
    [A2].Value = .Value
  end with
End with
Then use the formula I posted

Skip,
Skip@TheOfficeExperts.com
 
Much easier (no VBA required) if you use the Control Toolbox toolbar. Simply set the "LinkedCell" property equal to B1 and use a formula like this in C1:
[blue]
Code:
   =IF(B1,A1,999)
[/color]

You did say adjacent columns didn't you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top