Finding out if subroutines exist in another workbook

  • Thread starter Thread starter Erich Neuwirth
  • Start date Start date
E

Erich Neuwirth

I need some functionality in an addin.
When a certain procedure in the addin in executed,
it should check for the existence of the a procedure with
a fixed name in the active workbook, and if the procedure
is defined, it should execute it.
So: how can the addin check if the ActiveWorkbook
has a procedure of a given name?
 
Something like?

On Error GoTo err_label_1
Debug.Print Application.Run("'QDE.xla'!GetDatePriority")
Debug.Print "Found"
Exit Sub

err_label_1:
Debug.Print "Not Found"


--

HTH

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top