Solved

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

Posted on 2006-06-12
2
291 Views
Last Modified: 2012-06-27
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
Comment
Question by:COBOLforever
  • 2
2 Comments
 
LVL 34

Accepted Solution

by:
jefftwilley earned 125 total points
ID: 16887729
Place a condition inside your macro

FileLen("FileName") > 0   run Macro
J
0
 
LVL 34

Expert Comment

by:jefftwilley
ID: 16887758
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question