Excel VBA Check if directory exists error

后端 未结 7 931
别那么骄傲
别那么骄傲 2020-12-01 10:34

I have a spreadsheet that upon clicking a button will duplicate itself by copying/pasting everything to a new workbook and save the file with a name that is dependent upon s

相关标签:
7条回答
  • 2020-12-01 11:08

    This is the cleanest way... BY FAR:

    Public Function IsDir(s)
        IsDir = CreateObject("Scripting.FileSystemObject").FolderExists(s)
    End Function
    
    0 讨论(0)
提交回复
热议问题