Dim wExcel As Excel.Application Dim wWorkBooks As Excel.Workbook Dim wWorkSheets As Excel.Worksheet Dim image1 As OLEObject Set wExcel = New Excel.Application Set wWorkBooks = wExcel.Workbooks.Open("C:\WINDOWS\デスクトップ\Book1.xls") Set wWorkSheets = wWorkBooks.Worksheets(1)
Set image1 = wWorkSheets.OLEObjects(1) ☆image1.Picture = LoadPicture("C:\04.jpg")
wExcel.Quit Set wExcel = Nothing Set wWorkBooks = Nothing Set wWorkSheets = Nothing Set wCheck = Nothing ------------------------------------------