본문 바로가기
Office

[Excel] VB6 Excel 현재 Directory 구하기

by 청운추월 2023. 5. 4.
반응형
Excel에서 현재 디렉토리를  아래와 같이 구할 수 있습니다. 
 
    Dim FilePath, FileOnly, PathOnly As String
 
    FilePath = ThisWorkbook.FullName
    FileOnly = ThisWorkbook.Name
    PathOnly = Left(FilePath, Len(FilePath) - Len(FileOnly))
    ThisWorkbook.Path
 
반응형