ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create a folder.... (https://www.excelbanter.com/excel-programming/277335-create-folder.html)

PaiolaS

Create a folder....
 
Hi

I want to create a folder in a specific location, but
only if it doesnīt already exits!
Iīve tried the folowing code but it doesnīt work (i donīt
understand the "object")

If Object.FolderExists(ThisWorkbook.Path & "\" & "Temp")
= False Then
MkDir ThisWorkbook.Path & "\" & "Temp"
End If

Thanks a lot
Paiolas


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

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