Need an OFFSET for Checkboxes

JTL9IRON

New Member
Joined
Nov 3, 2005
Messages
31
I think this pretty simple but I just can't get it right.

I have several checkboxes on a userform that translates a value to cells on the spreadsheet starting in cell B1, C1, D1, E1...etc.

If CheckBox1.Value = True Then
Range("B1").Value = "1"

I have a command button asking if you want to enter another person choices (I have a text box putting the person name in cell A1)

When the command button is clicked I have all the checkboxes value's changed to FALSE and I clear the text box with the name and move the active cell 1 row down, which when I enter the new name it fills in in cell
A2.

TextBox1.SetFocus
Application.Goto Reference:="R[1]C[]"
TextBox1.Text = ""

The problem when I start checking the checkboxes they over right the info already in cells B1, C1, D1..etc.

How do I get the checkboxes to move down one row? Offset?

You help will be appreciated
James
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hello, JTL9IRON
Welcome to the Board !!!!!

perhaps you can try this
it would at least be an idea to start with

Code:
If CheckBox1.Value = True Then
Range("B" & ActiveCell.Row).Value = "1"

but this would rely on the activecell which can easily been changed
instead of activecell you could use a counter
this on top of a "normal" module
Code:
Publice counter As Long
you ccommand button code could have
Code:
counter = counter + 1
'OR
counter : ACtiveCell.Row

checkbox code
Code:
If CheckBox1.Value = True Then
Range("B" & counter).Value = "1"
kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,223,390
Messages
6,171,807
Members
452,426
Latest member
cmachael

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top