Using a Macro to ensure file is being used

  • Thread starter Thread starter Colin
  • Start date Start date
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?
 
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""))
 
Back
Top