Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have created a macro which adds a command in the shortcut menu if that
workbook is activated. This works fine. But when I save the same as addin it does not work. It also does not add the command at the shotrcut menu. I have tried with on install but in vain. Am I missing somthing obvious? Regards, Bimal |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bimal,
Can we see the code? -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Bimal" wrote in message ... I have created a macro which adds a command in the shortcut menu if that workbook is activated. This works fine. But when I save the same as addin it does not work. It also does not add the command at the shotrcut menu. I have tried with on install but in vain. Am I missing somthing obvious? Regards, Bimal |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
The AddIn is never the active workbook. If you want to refer to active workbook objects in your Add In code (sheets etc) use ActiveWorkbook.Object. If you want to refer to objects in the AddIn itself use ThisWorkbook.Object. regards Paul (Bimal) wrote in message m... I have created a macro which adds a command in the shortcut menu if that workbook is activated. This works fine. But when I save the same as addin it does not work. It also does not add the command at the shotrcut menu. I have tried with on install but in vain. Am I missing somthing obvious? Regards, Bimal |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating monthly start date with a start date | Excel Worksheet Functions | |||
start:1 and start:2 - how did i get 2 copies? | Excel Discussion (Misc queries) | |||
OT :Start your own online business today !start making dollars | Excel Discussion (Misc queries) | |||
Start spreadsheet with WinXP start | Excel Worksheet Functions | |||
Don't know where to start | Excel Programming |