[vba] WorkSheet가 속한 WorkBook의 파일경로 > vb6.0/vba

본문 바로가기

vb6.0/vba

[vba] [vba] WorkSheet가 속한 WorkBook의 파일경로

회원사진
하나를하더라도최선을
2021-02-12 17:03 3,388 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

등록된 댓글이 없습니다.
게시판 전체검색