PC Review


Reply
Thread Tools Rate Thread

Can I Create A Button On the Top Tool Bar?

 
 
Jeff W.
Guest
Posts: n/a
 
      18th Oct 2007
I have created a selection that goes there on open and has a
drop down menu, then is removed on close, but

Is it possible to create a button named "Update" that can
run a sub when you select it?

Right now if I press [ALT] F it will drop down my File menu

It would be nice If I could press [ALT] U and run the macro
associated with the newly create button

Does anyone have any ideas or suggestions on this?

Thanks,

Jeff W.


 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      18th Oct 2007
I take it that you are using msoControlPopup to create the menu up
top. Simply change that to msoControlButton and make any other
necessary changes to variables and such and just add an OnAction to
it. Of course, you would need to remove all the other code underneath
it that creates the menu items as you only want a single button.

Jeff W. wrote:
> I have created a selection that goes there on open and has a
> drop down menu, then is removed on close, but
>
> Is it possible to create a button named "Update" that can
> run a sub when you select it?
>
> Right now if I press [ALT] F it will drop down my File menu
>
> It would be nice If I could press [ALT] U and run the macro
> associated with the newly create button
>
> Does anyone have any ideas or suggestions on this?
>
> Thanks,
>
> Jeff W.


 
Reply With Quote
 
=?Utf-8?B?Sm9obiBLZWl0aA==?=
Guest
Posts: n/a
 
      18th Oct 2007
Just assign a shortcut key to the macro...
On the "Macro" menu select "options" and then assign a CRTL+key to use.

To use the command bar option and assign the ALT key to be part of the
sub-menu item, like alt+f for FILE, then alt+s for save... take a look at the
controls("???").shortcuttext property
This will let you assign the letter when combined with ALT that will run the
..OnAction assigned macro. It will show the "_" for that letter in the menu
text too.

--
Regards,
John


"Jeff W." wrote:

> I have created a selection that goes there on open and has a
> drop down menu, then is removed on close, but
>
> Is it possible to create a button named "Update" that can
> run a sub when you select it?
>
> Right now if I press [ALT] F it will drop down my File menu
>
> It would be nice If I could press [ALT] U and run the macro
> associated with the newly create button
>
> Does anyone have any ideas or suggestions on this?
>
> Thanks,
>
> Jeff W.
>
>
>

 
Reply With Quote
 
Jeff W.
Guest
Posts: n/a
 
      18th Oct 2007
I give that a try...

Thanks,

<Jeff>

"John Keith" <(E-Mail Removed)> wrote in message
news:9FA169B3-A786-4B87-A285-(E-Mail Removed)...
> Just assign a shortcut key to the macro...
> On the "Macro" menu select "options" and then assign a CRTL+key to use.
>
> To use the command bar option and assign the ALT key to be part of the
> sub-menu item, like alt+f for FILE, then alt+s for save... take a look at
> the
> controls("???").shortcuttext property
> This will let you assign the letter when combined with ALT that will run
> the
> .OnAction assigned macro. It will show the "_" for that letter in the
> menu
> text too.
>
> --
> Regards,
> John
>
>
> "Jeff W." wrote:
>
>> I have created a selection that goes there on open and has a
>> drop down menu, then is removed on close, but
>>
>> Is it possible to create a button named "Update" that can
>> run a sub when you select it?
>>
>> Right now if I press [ALT] F it will drop down my File menu
>>
>> It would be nice If I could press [ALT] U and run the macro
>> associated with the newly create button
>>
>> Does anyone have any ideas or suggestions on this?
>>
>> Thanks,
>>
>> Jeff W.
>>
>>
>>



 
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
PP 2000: can't create button/menu in button bar to start userForm =?Utf-8?B?QmFsZXg=?= Microsoft Powerpoint 9 12th Nov 2005 10:35 PM
Create floating button based on button click in menu =?Utf-8?B?RXhjZWxNb25rZXk=?= Microsoft Excel Programming 2 12th Oct 2005 06:43 PM
How to create a toolbar button at the right edge of the tool bar ? JC Voon Microsoft VB .NET 4 13th Jan 2005 08:46 AM
Re: Excel's draw tool to create a Macro Button JulieD Microsoft Excel Programming 1 5th Aug 2004 06:26 PM
reset button, create excel, import table, send e-mail, create back-up matthew nance Microsoft Access 0 27th Jul 2004 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 PM.