Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to write a code for a form with check boxes in excel 2003. When a
person chooses a number of checkboxes it will put the information into a cell and then go to the next blank cell and add the next checkbox data. This is the code I have so far but instead of choosing the next blank cell it chooses a set cell. How can I change this to choose the next blank cell? Private Sub cmdOK_Click() ActiveWorkbook.Sheets("Cars").Activate Range("A1").Select If chkFord = True Then ActiveCell.Offset(0, 5).Value = "Ford" End If If chkToyota = True Then ActiveCell.Offset(1, 5).Value = "Toyota" End If If chkMazda = True Then ActiveCell.Offset(2, 5).Value = "Mazda" End If End Sub Thanks Kerry |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code to save excel sheet | Excel Discussion (Misc queries) | |||
locking excel sheet from vb code | Excel Programming | |||
help: code for importing xml into excel sheet | Excel Programming | |||
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet | Excel Programming | |||
how to programmingly insert a new row in excel sheet?(using VB code) | Excel Programming |