LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Create floating button based on button click in menu

I have a menu that I install. I create a button in the menu. What I now
want to do is on the Onaction Property tell VBA to create a floating button
that pops up on my screen. I then want to attach that button to another
macro. So I only want this floating button to appear when I click on the
button in my menu. And I want it to float on my screen so that I can close
it when I do not need it. Does anyone know how to do this?


Sub MenuSetup()
Dim MenuBar As CommandBar
Dim MyMenu
Dim MySubMenu1 As CommandBarButton

Set MenuBar = CommandBars.ActiveMenuBar

Set MyMenu = MenuBar.Controls.Add(Type:=msoControlPopup, Temporary:=True)
MyMenu.Caption = "&Tools"
'MyMenu.BeginGroup = True

'******
'Create First Button Items
Set MySubMenu1 = MyMenu.Controls.Add(Type:=msoControlButton, ID:=1,
Temporary:=True)
MySubMenu1.Caption = "First Button"
MySubMenu1.FaceId = 590
MySubMenu1.OnAction = "Want this to call up floating button"
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
click a button create an X Captain Eddie Excel Worksheet Functions 1 July 31st 09 08:01 PM
Shortcut menu won't appear when I click right mouse button. jngrant28 Excel Discussion (Misc queries) 3 June 17th 08 05:23 PM
How can I create a Floating Command Button Karoo News Excel Programming 1 August 19th 05 11:19 AM
How to create a toggle button on the menu? OKLover Excel Programming 4 July 10th 05 03:51 PM
How to determine which button was clicked on the modified right-click menu Patrick Choi Excel Programming 1 September 1st 03 02:07 PM


All times are GMT +1. The time now is 09:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"