[vba] [vba] WorkSheet가 속한 WorkBook의 파일경로
하나를하더라도최선을
2021-02-12 17:03
3,394
0
본문
특정 시트의 워크북 상위폴더
DimfPathAsString
fPath=StrReverse(objPath.Parent.Path)'// 해당 시트의 파일경로값을 좌우로 뒤집어 넣음
fPath=StrReverse(Right(fPath, Len(fPath)-InStr(fPath,"\\")))'// 상위 폴더
ThisWorkbook 의 상위폴더
DimfPathAsString
fPath=StrReverse(ThisWorkbook.Path)'// 파일경로값을 좌우로 뒤집어 넣음
fPath=StrReverse(Right(fPath, Len(fPath)-InStr(fPath,"\"))) '// 상위 폴더
댓글목록0