PC Review


Reply
Thread Tools Rate Thread

Custom menus by macros

 
 
PeterJC
Guest
Posts: n/a
 
      14th Apr 2009
I have an application, with a custom menu, written in Access 2000. I'm using
the application in Access 2007, and I'm converting the custom menu to a
switchboard system (since Access 2007 doesn't support the design mode for
modifying the menu).

I have a switchboard command to print one of 23 reports, and ideally, that
command would open a second switchboard showing all of the reports, from
which I would select one of them, but I am limited to 8 by the switchboard.

I have designed a macro system which provides a custom pop-up menu which
will allow the selection of one of the reports, in accordance with the
Microsoft article "Create custom menus and shortcut menus by using macros". I
have tried to run this macro from the switchboard, either using the
switchboard "Run Macro" command, or using the Docmd method in VBA code, but
neither methoc will cause the macro to run and create the menu.

Please tell me how I can run this macro menu system from the switchboard.
--
Thanks, PeterJC
 
Reply With Quote
 
 
 
 
Jeanette Cunningham
Guest
Posts: n/a
 
      15th Apr 2009
Hi Peter,
to use the custom shortcut menu, you set the form's shortcut menu to the
name of the macro.
The Shortcut Menu property for the form is on the property sheet on the
other tab.
Type in the correct name of your macro in the place for shortcut menu. The
list of macros doesn't show up in the dropdown for the shortcut menu, you
need to type it in.

You can instead put the macro in the shortcut menu for a control (such as a
button) on the form.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"PeterJC" <(E-Mail Removed)> wrote in message
news:AF84DAD0-CDDA-452C-BE35-(E-Mail Removed)...
>I have an application, with a custom menu, written in Access 2000. I'm
>using
> the application in Access 2007, and I'm converting the custom menu to a
> switchboard system (since Access 2007 doesn't support the design mode for
> modifying the menu).
>
> I have a switchboard command to print one of 23 reports, and ideally, that
> command would open a second switchboard showing all of the reports, from
> which I would select one of them, but I am limited to 8 by the
> switchboard.
>
> I have designed a macro system which provides a custom pop-up menu which
> will allow the selection of one of the reports, in accordance with the
> Microsoft article "Create custom menus and shortcut menus by using
> macros". I
> have tried to run this macro from the switchboard, either using the
> switchboard "Run Macro" command, or using the Docmd method in VBA code,
> but
> neither methoc will cause the macro to run and create the menu.
>
> Please tell me how I can run this macro menu system from the switchboard.
> --
> Thanks, PeterJC



 
Reply With Quote
 
PeterJC
Guest
Posts: n/a
 
      15th Apr 2009
Jeanette, thanks for your reply. I've tried what you suggest, typing the
'addmenu' macro into the short-cut line of the switchboard's property sheet.
Trouble is, the shortcut then appears when I right-click on any one of the
various levels of switchboard in my system, which is not appropriate for the
menu system I'm trying to build (using the switcyboard as a basis).

What I would like to do is to be able to run the 'addmenu' macro from the
action of clicking on a particular button on the switchboard, giving the
allusion of a 'drop-down menu'. So far, i've not been able to do that.
--
Thanks again, PeterJC


"Jeanette Cunningham" wrote:

> Hi Peter,
> to use the custom shortcut menu, you set the form's shortcut menu to the
> name of the macro.
> The Shortcut Menu property for the form is on the property sheet on the
> other tab.
> Type in the correct name of your macro in the place for shortcut menu. The
> list of macros doesn't show up in the dropdown for the shortcut menu, you
> need to type it in.
>
> You can instead put the macro in the shortcut menu for a control (such as a
> button) on the form.
>
> Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
>
>
> "PeterJC" <(E-Mail Removed)> wrote in message
> news:AF84DAD0-CDDA-452C-BE35-(E-Mail Removed)...
> >I have an application, with a custom menu, written in Access 2000. I'm
> >using
> > the application in Access 2007, and I'm converting the custom menu to a
> > switchboard system (since Access 2007 doesn't support the design mode for
> > modifying the menu).
> >
> > I have a switchboard command to print one of 23 reports, and ideally, that
> > command would open a second switchboard showing all of the reports, from
> > which I would select one of them, but I am limited to 8 by the
> > switchboard.
> >
> > I have designed a macro system which provides a custom pop-up menu which
> > will allow the selection of one of the reports, in accordance with the
> > Microsoft article "Create custom menus and shortcut menus by using
> > macros". I
> > have tried to run this macro from the switchboard, either using the
> > switchboard "Run Macro" command, or using the Docmd method in VBA code,
> > but
> > neither methoc will cause the macro to run and create the menu.
> >
> > Please tell me how I can run this macro menu system from the switchboard.
> > --
> > Thanks, PeterJC

>
>
>

 
Reply With Quote
 
Jeanette Cunningham
Guest
Posts: n/a
 
      16th Apr 2009
Try this-->
Remove the name of the macro from the shortcut menu for the switchboard.

Put the name of the macro on the shortcut menu for the particular control.
That way the shortcut menu will only appear when that particular control
receives a right click.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"PeterJC" <(E-Mail Removed)> wrote in message
news:EA9A81B4-E5E1-4BF4-B169-(E-Mail Removed)...
> Jeanette, thanks for your reply. I've tried what you suggest, typing the
> 'addmenu' macro into the short-cut line of the switchboard's property
> sheet.
> Trouble is, the shortcut then appears when I right-click on any one of
> the
> various levels of switchboard in my system, which is not appropriate for
> the
> menu system I'm trying to build (using the switcyboard as a basis).
>
> What I would like to do is to be able to run the 'addmenu' macro from the
> action of clicking on a particular button on the switchboard, giving the
> allusion of a 'drop-down menu'. So far, i've not been able to do that.
> --
> Thanks again, PeterJC
>
>
> "Jeanette Cunningham" wrote:
>
>> Hi Peter,
>> to use the custom shortcut menu, you set the form's shortcut menu to the
>> name of the macro.
>> The Shortcut Menu property for the form is on the property sheet on the
>> other tab.
>> Type in the correct name of your macro in the place for shortcut menu.
>> The
>> list of macros doesn't show up in the dropdown for the shortcut menu, you
>> need to type it in.
>>
>> You can instead put the macro in the shortcut menu for a control (such as
>> a
>> button) on the form.
>>
>> Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
>>
>>
>> "PeterJC" <(E-Mail Removed)> wrote in message
>> news:AF84DAD0-CDDA-452C-BE35-(E-Mail Removed)...
>> >I have an application, with a custom menu, written in Access 2000. I'm
>> >using
>> > the application in Access 2007, and I'm converting the custom menu to
>> > a
>> > switchboard system (since Access 2007 doesn't support the design mode
>> > for
>> > modifying the menu).
>> >
>> > I have a switchboard command to print one of 23 reports, and ideally,
>> > that
>> > command would open a second switchboard showing all of the reports,
>> > from
>> > which I would select one of them, but I am limited to 8 by the
>> > switchboard.
>> >
>> > I have designed a macro system which provides a custom pop-up menu
>> > which
>> > will allow the selection of one of the reports, in accordance with the
>> > Microsoft article "Create custom menus and shortcut menus by using
>> > macros". I
>> > have tried to run this macro from the switchboard, either using the
>> > switchboard "Run Macro" command, or using the Docmd method in VBA
>> > code,
>> > but
>> > neither methoc will cause the macro to run and create the menu.
>> >
>> > Please tell me how I can run this macro menu system from the
>> > switchboard.
>> > --
>> > Thanks, PeterJC

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I transfer docs w/custom macros & menus to other computer? =?Utf-8?B?c3JjcG9k?= Microsoft Word Document Management 1 8th Oct 2006 12:27 AM
Custom Menus and Macros Terry Microsoft Excel Misc 5 25th Jan 2005 11:27 PM
Custom Menus and Macros Terry Microsoft Excel Misc 0 24th Jan 2005 01:05 PM
attach macros to custom menus =?Utf-8?B?SmF6eg==?= Microsoft Excel Setup 2 17th Mar 2004 05:56 PM
Copying a workbook with custom menus and macros =?Utf-8?B?UGFtIFI=?= Microsoft Excel Crashes 1 19th Jan 2004 09:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:31 AM.