Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

placing a bitmap on a xls file. 1

Status
Not open for further replies.

kingz2000

Programmer
May 28, 2002
304
DE
Hi,

how can I place a bitmap (C:\xyz.bmp) on a particular field ,[H3] say, in a particular excel file (C:\test.xls)

Thanks in advance!
 
Something like the following will place the bitmap with its upper left corner in cell H3:
Code:
Sub InsertBitmap()
Dim Wkb As Workbook

   Set Wkb = Workbooks.Open("C:\test.xls")
   
   With Wkb.ActiveSheet
     .Cells(3, 8).Select
     .Pictures.Insert ("C:\xyz.bmp")
   End With
   Wkb.Close SaveChanges:=True
   
End Sub


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top