엑셀에서 alt+f11을 눌러서 창을 띄워 준다.
삽입 - 모듈
Sub Pic()
Dim myPic As Variant
myPic = Application.GetOpenFilename _
(filefilter:="Picture Files,*.jpg;*.bmp;*.tif;*.gif")
If myPic = False Then
Exit Sub
End If
With ActiveSheet.Pictures.Insert(myPic).ShapeRange
.LockAspectRatio = msoFalse
.Height = Selection.Height - 4
.Width = Selection.Width - 4
.Left = Selection.Left + 2
.Top = Selection.Top + 2
End With
End Sub
'엑셀' 카테고리의 다른 글
엑셀 이름충돌 해결, 엑셀 탭복사 에러 (0) | 2023.04.15 |
---|---|
엑셀 명령어 모음 (0) | 2023.04.14 |
엑셀 이름충돌 1분 해결방법 (0) | 2017.06.28 |
문자열 계산하는 함수 (0) | 2014.05.26 |
엑셀- 셀에 맞취 사진 넣기 매크로 (0) | 2014.03.06 |