whudson1980
New Member
- Joined
- Dec 10, 2013
- Messages
- 13
So, I have a bunch of conditions, that based on those conditions, an inputbox writes to a different cell. Instead of writing the code over and over, I figured I would:
If _______ then
capCell = Sheets("SheetName").Cell(5, 5)
end if
If ________ then
CapCell = Sheets("SheetName").Cell(5.8)
etc. . .
then later, I could just:
CapCell.Value = InputBoxVariable
that way I could write to the cell at the bottom after everything is input.
But I'm getting "Object variable or with block variable not set. . . .
I did do a : dim Capcell as Range at the beginning. Am I missing something?
If _______ then
capCell = Sheets("SheetName").Cell(5, 5)
end if
If ________ then
CapCell = Sheets("SheetName").Cell(5.8)
etc. . .
then later, I could just:
CapCell.Value = InputBoxVariable
that way I could write to the cell at the bottom after everything is input.
But I'm getting "Object variable or with block variable not set. . . .
I did do a : dim Capcell as Range at the beginning. Am I missing something?