View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Ed[_18_] Ed[_18_] is offline
external usenet poster
 
Posts: 118
Default Setting OnAction of custom menu item?

Thanks, Bob. Time for Plan B.

Ed

"Bob Phillips" wrote in message
...
Ed,

It can't refer back to a VB App. Think about it, the VB app will run,

create
the toolbar and then finish. The button could be clicked at any time

after,
and there is no app to call back into.

You can run a macro in the same workbook, another workbook, and you could
even have a macro that is simply a bridge into a DLL if you so wanted, but
not your parent app as far as I can see.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Ed" wrote in message
...
I'm using a Visual Basic app to open a workbook and set a custom menu in

it.
It works okay, as far as I have it (thanks to much help from the Excel

and
VB NG gurus!). The idea driving this is to remove all code from the
workbook - it's causing errors for my users.

Now I need to set the OnAction property of my menu items. Must OnAction
always refer to a macro in the workbook? Can I set OnAction to refer

back
to a sub in the VB app? If this is possible, how would this look when
coded?

Ed