CheckBox value to worksheet

  • Thread starter Thread starter Patrick Simonds
  • Start date Start date
P

Patrick Simonds

I have one CheckBox on my user form, if it is checked I want the Value Yes
(or No if the CheckBox is not selected) to go into the active row column 2
(using something like rng(1, 2).Value = ???). My macro already sets the
current row as active, I just do not know how to code this.
 
Hi,
If your are in the target cell:

activecell.offset(0,0).select
'put it in column B of the current row
activecell.offset(0,1).value=whatever
 
Mark assumed that column A would be the active cell

Cells(activeCell.row,2).Value = iif(checkbox1.value,"Yes","No")


might be more robust.
 

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