2017년 2월 5일 일요일

엑셀 하이퍼링크 또는 메모 값 가져오기

VBA로 구현하는 방법

함수 만들기 -> 컬럼 추가 -> 값 얻기

alt+F11 - 삽입 - 모듈

아래 내용 붙여 넣기

* 하이퍼링크 값 가져오기

Function GetHyperlinkInfo(HyperlinkCell As Range)

   GetHyperlinkInfo = HyperlinkCell.Hyperlinks(1).Address

End Function


* 메모 값 가져오기

Function GetMemoInfo(CommentCell As Range)

   GetMemoInfo = CommentCell.Comment.Text

End Function


저장

컬럼 추가. 해당 셀에 다음을 입력
=GetHyperlinkInfo(A1)

=GetMemoInfo(A1)


댓글 없음:

댓글 쓰기