I have a userform with, at this time 93 textboxes, checkboxes, and option buttons. I have coded the values from these objects to a worksheet named inputs.
Inputs.Range("C4").Value = txName.Value
I need to change C4 to a variable so that each time I save my form it moves one column over. I want to start at C4, save my values, move to D4, save my values, etc.
This is what I have:
[code]
Dim opencell As String
Inputs.Activate
Inputs.Range("C4").Activate
Do Until IsEmpty(ActiveCell.Value)
ActiveCell.Offset(0, 1).Select
Loop
opencell = ActiveCell.Address
Inputs.Range("opencell ").Value = txName.Value
[code]
And I get run time error 1004
Method ‘Range of object’_Worksheet’ failed
Any help would be appreciated.
Thank you
Bookmarks