msquared99
Member
I have a UserForm with some CheckBoxes and TextBoxes. If the CheckBox is checked my macro assigns a value such as "Cat" to a new workbook then saves the workbook in cells D15:D18. I can import the data back into the UserForm in the TextBoxes. My problem is how do I recheck the CheckBoxes?
I may have none to all 4 CheckBoxes checked. Here is how the values are assigned.
If cbCat.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Cat"
If cbDog.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Dog"
If cbRabbit.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Rabbit"
If cbDeer.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Deer"
So, when I import the saved workbook how do I get the macro to look at cells D15:18 and say, If "Cat" or any other selection is in cells D15:D18 check the CheckBox in the UserForm on the import?
Thanks,
Mike
I may have none to all 4 CheckBoxes checked. Here is how the values are assigned.
If cbCat.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Cat"
If cbDog.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Dog"
If cbRabbit.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Rabbit"
If cbDeer.Value = True Then .Cells(25, 4).End(xlUp).Offset(1).Value = "Deer"
So, when I import the saved workbook how do I get the macro to look at cells D15:18 and say, If "Cat" or any other selection is in cells D15:D18 check the CheckBox in the UserForm on the import?
Thanks,
Mike