adding pictures to spreadsheet

K

Kilo Bravo

I have an excel VBA module which inserts some BMP files into a spreadsheet. I know there are better ways to this but this is how the boss wants it. anyway, it works good but suddenly the BMP files are sized small. I mean it used insert the BMP files at their full size. The critical line of code is:

activesheet.pictures.insert(pathname & filename)

There is no size attribute involved here.

Any ideas out there? Is there a better way to code it?



--
K.Brown
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/
 
D

Doug Robbins

Better to ask in the Excel Programming newsgroup. This one is for Word.

--
Please respond to the Newsgroup for the benefit of others who may be interested. Questions sent directly to me will only be answered on a paid consulting basis.

Hope this helps,
Doug Robbins - Word MVP
I have an excel VBA module which inserts some BMP files into a spreadsheet. I know there are better ways to this but this is how the boss wants it. anyway, it works good but suddenly the BMP files are sized small. I mean it used insert the BMP files at their full size. The critical line of code is:

activesheet.pictures.insert(pathname & filename)

There is no size attribute involved here.

Any ideas out there? Is there a better way to code it?



--
K.Brown
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

adding picture to worksheet 1
serial port communications 1
class id error 1
excel and word 1
Best Practice for Re-Baseline 5
Adding data to MS Access from csv file 0
serial port or messaging 0
hiding workbooks 5

Top