- 帖子
- 4901
- 主題
- 44
- 精華
- 24
- 積分
- 4916
- 點名
- 142
- 作業系統
- Windows 7
- 軟體版本
- Office 20xx
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台北
- 註冊時間
- 2010-4-30
- 最後登錄
- 2026-7-16
                
|
- Sub Ex()
- Dim A As Range
- On Error Resume Next
- Sheet1.Pictures.Delete
- For Each A In Selection
- With ActiveSheet.Pictures.Insert(A.Text)
- i = i + 1
- If i <> ActiveSheet.Pictures.Count Then MsgBox "圖片未加入,請檢查路徑" & A: i = i - 1
- .Top = A.Top
- .Left = A.Offset(, 1).Left
- .Height = 120
- .Width = 120
- A.RowHeight = .Height
- A.Offset(, 1).ColumnWidth = .Width / 5.6
- End With
- Next
- End Sub
複製代碼 |
|