PC Review


Reply
Thread Tools Rate Thread

How do I copy some cells(including formatting) and save as image fileusing VBA?

 
 
LunaMoon
Guest
Posts: n/a
 
      24th Sep 2010
How do I copy some cells(including formatting) and save as image file
using VBA?

Ultimately, I want to do that via COM or ActiveX server. Yet I think
VBA is the starting point.

So lets start from VBA.

How to do that in VBA?

I know how to open and close the Excel sheet.

But what's the command in VBA/COM/ACTIVEX to copy a few cells
(rectangular shape, including formatting), and save as image?
 
Reply With Quote
 
 
 
 
James Ravenswood
Guest
Posts: n/a
 
      25th Sep 2010
On Sep 24, 4:14*pm, LunaMoon <lunamoonm...@gmail.com> wrote:
> How do I copy some cells(including formatting) and save as image file
> using VBA?
>
> Ultimately, I want to do that via COM or ActiveX server. Yet I think
> VBA is the starting point.
>
> So lets start from VBA.
>
> How to do that in VBA?
>
> I know how to open and close the Excel sheet.
>
> But what's the command in VBA/COM/ACTIVEX *to copy a few cells
> (rectangular shape, including formatting), and save as image?


Within a VBA environment, I would use PowerPoint. Make an Excel macro
to:

1. launch PowerPoint
2. copy the section as picture
Range("A1:B2").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture
3. paste into PowerPoint
4. save the PowerPoint as .jpg, for example
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coppying cells, including conditional formatting ('03 & '07) Raymond W. Microsoft Excel Programming 3 25th Sep 2009 02:56 AM
Copy Range / Including Adjacent Cells - into Existing Worksheet. loadbuckets@comcast.net Microsoft Excel Programming 1 14th Jan 2007 12:47 PM
Simple yet...Copy formatting (including column/row dimensions) and values but not formulas Finny Microsoft Excel Programming 1 5th Dec 2006 08:41 PM
Compare cells including formatting rlaemmler@gmail.com Microsoft Excel Programming 3 8th Aug 2006 01:04 AM
how do I use a formula to copy a cell including formatting =?Utf-8?B?QW5keWluT3JsYW5kbw==?= Microsoft Excel Misc 1 1st Oct 2004 10:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 AM.