Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba excel

ResolvedVersion 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 courses

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Sorting data stored in rows

Primarily Excel is set up to sort data that is stored in columns rather than rows.

It is possible to get Excel to sort data stored in rows however.

Click in the row you want to sort, or select the cells in the rows you wish to sort.

Go to Data - Sort, then go to the Options button in the bottom left corner of the Sort dialogue box.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.