changing picture types using vba in word

A

Allan

I have a document that contains several pictures tha tI would like to convert
to either bmp or png. Is this possible with vba?
I have tried setting a macro to cut and paste special them but when i run
the code I receive the mesage that the picture type is not available at this
time. What or who decides when differnet picture types are available?
Any assistance would be appreciated.
 
J

Jay Freedman

Allan said:
I have a document that contains several pictures tha tI would like to
convert to either bmp or png. Is this possible with vba?
I have tried setting a macro to cut and paste special them but when i
run the code I receive the mesage that the picture type is not
available at this time. What or who decides when differnet picture
types are available? Any assistance would be appreciated.

Sorry, Allan, Word does not do graphic file-format conversions like that.

I recommend the free program IrfanView (http://www.irfanview.com/) for this.
 
A

Allan

--
Allan Pitter - Computer Teacher


Jay Freedman said:
Sorry, Allan, Word does not do graphic file-format conversions like that.

I recommend the free program IrfanView (http://www.irfanview.com/) for this.
Jay,
Many thanks for your response. I already use Irfanview for file conversion
and have found it to be very useful. In this instance unfortunately, I have
some previously written documents that contain a number of grouped pictures.
I was hoping that it may be possible to write some code to iterate throught
the document and cut and paste the pictures as a .bmp or .png image. I guess
I'll just have to do it by hand.
 
J

Jay Freedman

--
Allan Pitter - Computer Teacher



Jay,
Many thanks for your response. I already use Irfanview for file conversion
and have found it to be very useful. In this instance unfortunately, I have
some previously written documents that contain a number of grouped pictures.
I was hoping that it may be possible to write some code to iterate throught
the document and cut and paste the pictures as a .bmp or .png image. I guess
I'll just have to do it by hand.

I thought you already had separate files and just needed to convert
their format. If you have only embedded graphics in a Word document,
then see http://www.gmayor.com/extract_images_from_word.htm for a
couple of ways to extract them. Still nothing as simple as cut and
paste, but maybe better than one-by-one.
 

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

Top