ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding Bitmap to Worksheet (https://www.excelbanter.com/excel-programming/314241-adding-bitmap-worksheet.html)

macca

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

Jim Rech

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



macca

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




Tom Ogilvy

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







All times are GMT +1. The time now is 05:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com