ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Verify if a workbook exist with a macro (https://www.excelbanter.com/excel-programming/341632-verify-if-workbook-exist-macro.html)

Homero

Verify if a workbook exist with a macro
 
hello,
i want to verify if a workbook exist in a disk with a macro???

regardes


Ron de Bruin

Verify if a workbook exist with a macro
 
Hi Homero

You can use Dir

Sub test()
If Dir("C:\Data\test.xls") < "" Then
MsgBox "Exist"
Else
MsgBox "Not exist"
End If
End Sub




--
Regards Ron de Bruin
http://www.rondebruin.nl


"Homero" wrote in message ...
hello,
i want to verify if a workbook exist in a disk with a macro???

regardes





All times are GMT +1. The time now is 10:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com