Using a Macro to ensure file is being used

C

Colin

I want to create a macro that checks on loading that the correct file has
been loaded basically the condition I want is "if FILNAME <> "string". Is
this possible?
 
S

Steve Schapel

Colin,

It is not entirely clear what you want, so maybe you could give a specific
example if we miss the point. I gather you mean you want to check for the
existence of a particular file. If so, you can put the equivalent of this
in the Condition of a macro:
Len(Dir("C:\YourFolder\YourFile.abc""))
 

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