Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

MACRO - Import Text File - continue even if import file is empty

When building a macro with several steps, all using the Transfer text function, if one of the steps finds the import file empty I would like the macro to either continue automatically or warn the user and allow continue - is that possible?
0
COBOLforever
Asked:
COBOLforever
  • 2
1 Solution
 
jefftwilleyCommented:
Place a condition inside your macro

FileLen("FileName") > 0   run Macro
J
0
 
jefftwilleyCommented:
If coding, it's easier

'    If FileLen("FilePathAndName") > 0 Then
'        Run your macro
'    End If
J
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now