Saving excel files as jpeg

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi!

I need to save the excel sheets as jpeg.
Is that possible then how do I go about it.

Please help.
John
 
Thanks for the response , but I need to do it through code in VBA. Is that
possible.
I need a method where in I can transfer the excel information in image
format.


John
 
I´ve seen this done before. Without any details I can say it is
CopyPicture method.
This put selection into clipboard as a picture and paste it onto
activesheet:

Sub makemepic()
Dim rng As Range
Set rng = Selection
rng.CopyPicture xlScreen, xlPicture
activesheet.paste
End Sub
 
Thanks for the response , but I need to do it through code in VBA. Is that
possible.
I need a method where in I can transfer the excel information in image
format.

You need to investigate how PDFCreator controls its output option -
hopefully through some registry settings, but it's also possible it does
it purely through its GUI. In the first case, you can manipulate the
registry through VBA, in the second case you have to use some kind of
SendKeys - very problematic.

Alternatively, there might be some kind of screen grabber which can be
command-line driven and save the image as a JPG.

Why do you need to do this in the first place? Portability? Wouldn't PDF
output be just as portable? Or using the free XLS Viewer?
 

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

Back
Top