返回列表 上一主題 發帖

如何查詢兩個不同頁面的資料

回復 1# h99949
試試看
工作表模組
  1. Private Sub Worksheet_Calculate()
  2. For Each a In Range([B3], [B3].End(xlDown))
  3.   fs = Dir("D:\catalogue\" & a & ".jpg")
  4.   If fs <> "" Then
  5.      With ActiveSheet.Pictures.Insert("D:\catalogue\" & fs)
  6.      Set c = a.Offset(, 9)
  7.      .Left = c.Left
  8.      .Top = c.Top
  9.      .Height = c.Height
  10.      .Width = c.Width
  11.      End With
  12.   End If
  13. Next
  14. End Sub
複製代碼
學海無涯_不恥下問

TOP

        靜思自在 : 人要知福、惜福、再造福。
返回列表 上一主題