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

excel vba custom

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Excel VBA - Custom Menus

Excel VBA - Custom Menus

ResolvedVersion 2003

Ziggy has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course

Excel VBA - Custom Menus

Hello all

I have a really quick question and cant find the answer anywhere!

I have produced a nice little custom menu to action a set of options (macros).

A number of these options can be selected or deslected. Currently when I select a ControlButton the OnAction code runs, the button is marked as selected/deselected and the menu closes.

I would ideally like the menu to remain open/reopen to its previous location after the selection has been made, is this possible?

I assume it must be as this is how a number of the excel menus work.

It is currently for a ControlButton operated within a ControlPopup, in the future I may wish to add another layer of ControlPopups - just in case this affects methodology (so Popup > Popup > Button).

My thoughts are either it is a property of the button/popups that I must set to true, or a line of code I can add to reopen the various popups, but I can't work out the specifics for either.

Some guidance would be hugely appreciated.

Ziggy

RE: Excel VBA - Custom Menus

Hi Ziggy

Thanks for your comprehensive overview of what you are trying to do.

To establish a solution will take us beyond this forum and one of my colleagues reckons a couple of hours research will be required along with access to your working files.

I will email you directly with further detail on this and please accept my apologies for the delay in getting back to you.

Regards

Jacob

 

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:

Sum Up All the Values in A Column

If you want to quickly calculate the Summed values of all cells in a column in Excel 2003 normally you would use the SUM formula. (eg if you wanted to calculate the values in Column C rows 10 to 25) the formula would be:

=SUM(C10:C25)

However, if you keep adding values to column C you would keep having to modify the above SUM formula which can get quite annoying.

To get around this you can sum all the values in a column using the following formula:

=SUM(COLUMN:COLUMN)

Which, in our example, would be:

=SUM(C:C)

NOTE You cannot place this formula in column C, or else Excel 2003 will show a circular reference error.

The formula must be placed in any other column, EXCEPT the one being calculated.

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.09 secs.