melodramatic
Board Regular
- Joined
- Apr 28, 2003
- Messages
- 187
- Office Version
- 365
- Platform
- Windows
I'm running a macro that pulls up a file template, then asks you a series of questions to get the file set for who and what it needs to get the data.
The problem I'm having is in having it check the appropriate checkboxes. I've never done this before, and somewhere I'm screwing up.
If you answer the questions "No", then no problem - it bypasses and goes to the next question. So obviously my error is in the action line. I have opened the properties box and doublecheck that my checkboxes are named CheckBox1, CheckBox2, CheckBox3, CheckBox4 & CheckBox5. Their default setting in the template is false (unchecked).
Here's what I've got...
Help?
The problem I'm having is in having it check the appropriate checkboxes. I've never done this before, and somewhere I'm screwing up.
If you answer the questions "No", then no problem - it bypasses and goes to the next question. So obviously my error is in the action line. I have opened the properties box and doublecheck that my checkboxes are named CheckBox1, CheckBox2, CheckBox3, CheckBox4 & CheckBox5. Their default setting in the template is false (unchecked).
Here's what I've got...
Code:
If MsgBox("Was RAW DATA delivered to the Client?", vbYesNo) = vbYes Then
CheckBox1.Value = True
End If
If MsgBox("Were PHOTOS delivered to the Client?", vbYesNo) = vbYes Then
CheckBox2.Value = True
End If
If MsgBox("Were TEST LOGS delivered to the Client?", vbYesNo) = vbYes Then
CheckBox3.Value = True
End If
If MsgBox("Was an EMAIL SUMMARY delivered to the Client?", vbYesNo) = vbYes Then
CheckBox4.Value = True
End If
If MsgBox("Was any other type documentation delivered to the Client?", vbYesNo) = vbYes Then
CheckBox5.Value = True
OtherDesc = InputBox("Please list other documentation provided to Client:", "Other Documentation Provided")
Range("G22").Select
ActiveCell.FormulaR1C1 = OtherDesc
End If
Help?
Last edited: