Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run Macro on true statement
I need a macro to determine if a file is present in
another directory and if so execute another macro Something like: If \path\file.xls = true Then Application.Run "Prn" End If Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run Macro on true statement
Code: -------------------- Sub RunIfPresent() If Dir("C:\myFile.xls") < "" Then Application.Run "Prn" End If End Sub -------------------- --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run Macro on true statement
Hello Jack
If Dir("C:\My Documents\Excel\Tests\file.xls") < "" Then macro1 End If HTH Cordially Pascal "Jack S." a écrit dans le message de ... I need a macro to determine if a file is present in another directory and if so execute another macro Something like: If \path\file.xls = true Then Application.Run "Prn" End If Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
if statement, change cell only if true | Excel Worksheet Functions | |||
Does an if statement calculate both the true and false? | Excel Discussion (Misc queries) | |||
TRUE/FALSE STATEMENT | Excel Discussion (Misc queries) | |||
copy an entire row IF a statement is true | Excel Worksheet Functions | |||
Two TRUE to one FALSE statement | Excel Worksheet Functions |