Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Finding out if subroutines exist in another workbook

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Finding out if subroutines exist in another workbook

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)

"Erich Neuwirth" wrote in message
...
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding a Workbook based on a Cell information in another Workbook Walter Excel Worksheet Functions 1 October 10th 09 08:46 AM
does a value exist in another workbook chris 123456 Excel Worksheet Functions 4 February 19th 09 04:58 PM
Help - Does value exist in range of CLOSED workbook? c mateland Excel Worksheet Functions 9 April 16th 07 06:53 PM
Question relating to Named Ranges which exist in another workbook. Pank Excel Discussion (Misc queries) 2 February 5th 07 03:17 PM
Updating master workbook from source that may/may not exist [email protected] Excel Worksheet Functions 20 April 7th 05 03:37 PM


All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"