98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA in Excel 2007
VBA in Excel 2007
Resolved · Low Priority · Version 2007
Craig has attended:
Excel VBA Intro Intermediate course
VBA in Excel 2007
How can i add a Yes/No box in my code?
RE: VBA in Excel 2007
Hi Craig
Thank you for your question
You first need to add a check box to your form and give it a meaningful name.
I then suggest that you create an on click event for the check box, and within this declare a variable of boolean type.Then, using an IF statement, set the value of the boolean variable to true if the value of the combo box is true, and false if it is false
You can then use this variable as a test to see if a particular action is carried out
Hope this is useful
Regards
Stephen
Wed 15 Apr 2009: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Sorting data stored in rowsPrimarily Excel is set up to sort data that is stored in columns rather than rows. |