Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding Bitmap to Worksheet
Hi,
I am using Automation with VC++ 6 to create,format and write data to an excel spreadsheet. I am having problems knowing who to add a bitmap to my spreadsheet through automation. Can anyone tell me how to do this? Thanks In Advance, Macca |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding Bitmap to Worksheet
I don't know the C++ syntax but in VB I'd do something like:
ActiveSheet.Pictures.Insert "C:\Pic.bmp" -- Jim Rech Excel MVP "Macca" wrote in message ... | Hi, | | I am using Automation with VC++ 6 to create,format and write data to an | excel spreadsheet. | | I am having problems knowing who to add a bitmap to my spreadsheet through | automation. Can anyone tell me how to do this? | | Thanks In Advance, | Macca |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding Bitmap to Worksheet
Hi Jim,
Thanks for the reply. How can i select whereabouts on the worksheet, the bitmap goes? Cheers Macca "Jim Rech" wrote: I don't know the C++ syntax but in VB I'd do something like: ActiveSheet.Pictures.Insert "C:\Pic.bmp" -- Jim Rech Excel MVP "Macca" wrote in message ... | Hi, | | I am using Automation with VC++ 6 to create,format and write data to an | excel spreadsheet. | | I am having problems knowing who to add a bitmap to my spreadsheet through | automation. Can anyone tell me how to do this? | | Thanks In Advance, | Macca |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding Bitmap to Worksheet
set pic = ActiveSheet.Pictures.Insert ("C:\Pic.bmp")
With activesheet.Range("B9") pic.Top = .Top pic.Left = .Left End with aligns the upper left corner of the picture wit the upper left corner of Cell B9. -- Regards, Tom Ogilvy "Macca" wrote in message ... Hi Jim, Thanks for the reply. How can i select whereabouts on the worksheet, the bitmap goes? Cheers Macca "Jim Rech" wrote: I don't know the C++ syntax but in VB I'd do something like: ActiveSheet.Pictures.Insert "C:\Pic.bmp" -- Jim Rech Excel MVP "Macca" wrote in message ... | Hi, | | I am using Automation with VC++ 6 to create,format and write data to an | excel spreadsheet. | | I am having problems knowing who to add a bitmap to my spreadsheet through | automation. Can anyone tell me how to do this? | | Thanks In Advance, | Macca |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel copies as a bitmap | Excel Discussion (Misc queries) | |||
Bitmap | Excel Discussion (Misc queries) | |||
background bitmap washouts | Excel Discussion (Misc queries) | |||
bitmap for buttons | Excel Programming | |||
bitmap for buttons | Excel Programming |