Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Modifying the right-click popup menu of a shape

I would like to add an item to the right-click menu of all of the
shapes in a particular workbook of mine. This will launch a sub that
goes into an Access database and resizes the shape depending on the
calculated time left to produce the order. Is this possible? I would
definately like to keep the default menu items there too.

I noticed also that VB code doesn't seem to run when a shape is
selected (I get a beep and nothing happens) Is this going to prevent
me from launching code from the right-click menu of a shape? Does
anyone know of any websites/resources that could get me up to speed on
Excel shapes?

Any help would be greatly appreciated!

DL
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Modifying the right-click popup menu of a shape

Don, try this

Sub addtoshortcutMN()
Set AddItem = CommandBars("shapes").Controls.Add
With AddItem
.Caption = "test"
.OnAction = "testmacro"
.BeginGroup = True
End With
End Sub

Sub RESETaddtoshortcutMN()
CommandBars("shapes").Reset
End Sub


-----Original Message-----
I would like to add an item to the right-click menu of

all of the
shapes in a particular workbook of mine. This will

launch a sub that
goes into an Access database and resizes the shape

depending on the
calculated time left to produce the order. Is this

possible? I would
definately like to keep the default menu items there too.

I noticed also that VB code doesn't seem to run when a

shape is
selected (I get a beep and nothing happens) Is this going

to prevent
me from launching code from the right-click menu of a

shape? Does
anyone know of any websites/resources that could get me

up to speed on
Excel shapes?

Any help would be greatly appreciated!

DL
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Modifying the right-click popup menu of a shape

That worked perfectly. Thank you.


"John Dijkman" wrote in message ...
Don, try this

Sub addtoshortcutMN()
Set AddItem = CommandBars("shapes").Controls.Add
With AddItem
.Caption = "test"
.OnAction = "testmacro"
.BeginGroup = True
End With
End Sub

Sub RESETaddtoshortcutMN()
CommandBars("shapes").Reset
End Sub


-----Original Message-----
I would like to add an item to the right-click menu of

all of the
shapes in a particular workbook of mine. This will

launch a sub that
goes into an Access database and resizes the shape

depending on the
calculated time left to produce the order. Is this

possible? I would
definately like to keep the default menu items there too.

I noticed also that VB code doesn't seem to run when a

shape is
selected (I get a beep and nothing happens) Is this going

to prevent
me from launching code from the right-click menu of a

shape? Does
anyone know of any websites/resources that could get me

up to speed on
Excel shapes?

Any help would be greatly appreciated!

DL
.

Reply
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
Modifying Data in Drop Down Menu GooseMA Excel Worksheet Functions 2 May 23rd 09 08:43 PM
Popup Menu / Shortcut Menu Dale Fye Excel Discussion (Misc queries) 2 October 12th 07 12:57 AM
Can I add a Macro to right-click Menu? Ed Excel Discussion (Misc queries) 8 October 11th 06 02:43 PM
Auto Shape Menu Warman Excel Discussion (Misc queries) 3 October 7th 05 06:17 PM
Non-functional Popup Menu Boxes Jim_M Charts and Charting in Excel 0 January 20th 05 04:27 PM


All times are GMT +1. The time now is 06:05 AM.

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

About Us

"It's about Microsoft Excel"