Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Camera function - Excel 2000 to 2007 | Excel Discussion (Misc queries) | |||
Automating the Excel camera function | Excel Discussion (Misc queries) | |||
I am trying to use the "Camera" function within Excel | Excel Worksheet Functions | |||
Help with Camera Function | Excel Discussion (Misc queries) | |||
EXCEL 2003 "CAMERA" FUNCTION | Excel Worksheet Functions |