View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Neil[_14_] Neil[_14_] is offline
external usenet poster
 
Posts: 29
Default macro works on F8 but not auto

Macro written to delete an addition to commandbar(1):

When it is invoked through the .onaction property that is
defined when the menu item is added, the delete item
macro fails. The error message is -2147467259(80004005)
Method 'Delete' of object 'CommandBarPopup' failed.

Strangely though, if I step through the macro
incrementally (F8 F8 F8...) it works fine.

I can't figure this one out.

Thanks for any help!

Neil