RE: How to invoke a user form from a custom button on the menu bar
- From: Lamont <Lamont@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Jan 2007 14:20:03 -0800
Thanks very much J. It works. Great. Red-faced. I shoulda thought of
that as my first attempt. I do attempt to do due diligence before crying
for help.
As the user form of interest is written to be applicable to any form I next
want to make this form and the custom button on the menu bar come up on every
Excel sheet. Maybe that needs to be an OCX when is an "add-in" to Excel?
I thought I recalled there is a place to save macros to be applicable to all
forms, but I haven't found it yet. Thanks again.
--
Lamont Phemister
"JMay" wrote:
Userform1.show.
"Lamont" wrote:
I have a user form I would like to execute from a custom button on the
worksheet menu bar. I don't want a user to have to click Tools|Macro|Visual
Basic Editor and then have to scroll to the start procedure in the form to
invoke the form. It seems like I ought to simple add a button to the menu
bar and let the user click the button to bring up the form?
I have tried to reference the user form from a custom button added to the
menu bar, and from a button inserted on the form.
I have tried all the ways to refer to the user form that I can think of
but all return errors.
Please, can someone tell me to invoke this user form, or any VBA procedure,
for that matter.
Thank you for kind assistance.
Lamont
P.S.
I would like to make this the user button to invoke this particular user
form appear automatically on all worksheets.
It builds a list of column headings in a list box upon invocation.
The user can then select up to 6 sort fields which are added to
an MSFlexGrid control with "Ascend" set as default order for each item.
The user can toggle the ascend/descend for teach item in the Flex Grid.
The user can click a "Clear Sort" to clear the grid and permit
re-selection of sort items.
The user then should click the "Run Sort" button on the form to
excecute the sort.
--
Lamont
- Follow-Ups:
- Prev by Date: Re: Office 2007 + VSTA
- Next by Date: Re: Help with colums
- Previous by thread: Standard PivotTable report selection format
- Next by thread: RE: How to invoke a user form from a custom button on the menu bar
- Index(es):
Relevant Pages
|