Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to export a range to a picture ?

Hello,

I am trying to create a macro that could export (save) a range (fo
example {A1:T20} to a picture (bitmap).

A little bit like a printscreen or a screen capture...

Anybody have any idea if it is possible ?

Please advise,

regards,
Ayat

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default How to export a range to a picture ?

Hi Ayato

I have some code for this at
http://www.mvps.org/dmcritchie/excel/xl2gif.htm

HTH. Best wishes Harald

"Ayato " skrev i melding
...
Hello,

I am trying to create a macro that could export (save) a range (for
example {A1:T20} to a picture (bitmap).

A little bit like a printscreen or a screen capture...

Anybody have any idea if it is possible ?

Please advise,

regards,
Ayato


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default How to export a range to a picture ?

Hi Ayato,

I think it was Jim Wilcox who first suggested copying the range to a chart
and then using the chart.export method to save as a gif.

Something like this will do it;

Sub CopyRngToGif()
Dim MyRange As Range

Application.DisplayAlerts = False

Set MyRange = Worksheets(1).Range("A1:C6")

MyRange.CopyPicture

With Charts.Add
.Paste
.ChartArea.Clear
.Export "C:\temp\MyRange.gif"
.Delete
End With

Application.DisplayAlerts = True

End Sub

Ed Ferrero
http://edferrero.m6.net

Hello,

I am trying to create a macro that could export (save) a range (for
example {A1:T20} to a picture (bitmap).

A little bit like a printscreen or a screen capture...

Anybody have any idea if it is possible ?

Please advise,

regards,
Ayato


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export range to text file Matthew Scheperle Excel Discussion (Misc queries) 1 March 21st 10 03:30 AM
Export Picture Sean[_7_] Excel Programming 1 May 6th 04 02:51 PM
Export range to html Mikel Perez Excel Programming 0 December 1st 03 03:54 PM
How to export a picture or chart from Excel to PowerPoint? RADO[_3_] Excel Programming 2 November 3rd 03 01:15 PM
Export picture as gif in Excel Joe 90 Excel Programming 10 October 8th 03 12:43 PM


All times are GMT +1. The time now is 11:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"