반응형
Excel에서 현재 디렉토리를 아래와 같이 구할 수 있습니다.
Dim FilePath, FileOnly, PathOnly As String
FilePath = ThisWorkbook.FullName
FileOnly = ThisWorkbook.Name
PathOnly = Left(FilePath, Len(FilePath) - Len(FileOnly))
ThisWorkbook.Path
반응형
'Office' 카테고리의 다른 글
[Excel] 제어판 통화설정 및 소수점 자리수 읽기 (0) | 2023.05.04 |
---|---|
[Excel] Excel VB 에서 Serial 통신하기 (0) | 2023.05.04 |
[Excel] VB6 Excel 시트보호 된 셀에 에러발생시 처리 (0) | 2023.05.04 |
[Office] MS Office 매크로 한글깨짐 (0) | 2023.05.04 |
[Error] "데이터베이스에 포함된 VBA 프로젝트를 읽을 수 없기 때문에 데이터베이스를 열 수 없습니다" 에러 (0) | 2023.05.04 |