Thread: Calling SUB
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Peter Longstaff Peter Longstaff is offline
external usenet poster
 
Posts: 9
Default Calling SUB

"Dick Kusleika" wrote in
:

Peter

First, move the sub from ThisWorkbook to a standard module (Insert -
Module if you don't have one yet). Then set the OnAction property of
the commandbarbutton to the name of the sub.

Unless you're using a Workbook level event, you probably don't need
the sub in ThisWorkbook.


Hi Dick,

that's done it.

Thank you
Peter