Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automate the 'Camera' function in Excel VBA

How can I automate the 'Camera' function in Excel VBA? I
tried using the record macro option but this doesn't work.
I just want to copy a snapshot of a pivot table from one
sheet into another using the 'camera' option.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Automate the 'Camera' function in Excel VBA

"Stu" wrote in message
...
How can I automate the 'Camera' function in Excel VBA? I
tried using the record macro option but this doesn't work.
I just want to copy a snapshot of a pivot table from one
sheet into another using the 'camera' option.


Hi Stu,

Here's the general idea of how it works. You'll probably need to play
around with the specifics to fit your situation. The numbers specified after
the Pictures.Add method refer to the Left, Top, Width, and Height,
respectively, of the picture being added. The Left and Top are the only ones
you care about. The Width and Height numbers are just placeholders. The
actual picture will expand to the size of the range you copy in the first
line.

Sub AddPicture()
Sheet1.UsedRange.Copy
Sheet2.Pictures.Add 10, 10, 10, 10
Application.CutCopyMode = False
End Sub

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Automate the 'Camera' function in Excel VBA

Range("A1:F25").CopyPicture Appearance:=xlScreen, Format:=xlPicture
Worbooks("OtherBook.xls").Activate
Worksheets("Sheet2").Active
Range("B9").Select
ActiveSheet.Paste

--
Regards,
Tom Ogilvy

"Stu" wrote in message
...
How can I automate the 'Camera' function in Excel VBA? I
tried using the record macro option but this doesn't work.
I just want to copy a snapshot of a pivot table from one
sheet into another using the 'camera' option.
Thanks



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
Camera function - Excel 2000 to 2007 Mulato377 Excel Discussion (Misc queries) 1 August 11th 08 01:55 PM
Automating the Excel camera function kaitain Excel Discussion (Misc queries) 0 March 2nd 06 04:28 PM
I am trying to use the "Camera" function within Excel JIMk Excel Worksheet Functions 0 August 3rd 05 05:50 PM
Help with Camera Function nospaminlich Excel Discussion (Misc queries) 4 June 6th 05 08:41 PM
EXCEL 2003 "CAMERA" FUNCTION Steve In Palm Desert Excel Worksheet Functions 9 December 6th 04 03:03 PM


All times are GMT +1. The time now is 04:34 PM.

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"