Remove reference from code

G

Guest

My VBA project has a reference to an xla - lets call it external.xla. Not all
users of my VBA project has this xla installed. Is there any way to check the
existence of the xla from my code when the VBA project is opened. If it exist
it is placed in the folder C:\xlaStore.

If the xla does not exist I would like to remove the reference or perhaps
just ignore it in some way.

Thanks
The Doctor
 
T

Tom Ogilvy

Private Sub Workbook_Open()
if dir("C:\xlaStore\external.xla") = "" then
- xla does not exist
End if
End Sub
 

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

Top