printing and saving screenshots at the same time

Chuthry

New Member
Joined
Mar 28, 2010
Messages
33
Hi, i need to create a excel macro that can send a independent application screenshot to print out to printer and at the same time save the image in excel spreadsheet. The saving portion would be append.

Example the 1st screenshot is saved till row5, i need the macro to save the second screenshot starting from row6, is this possible?

If Not , how do i create a macro to save/paste a image after 5rows in excel?
example, row1 to row5 is for first image, row6 to row10 is for second image and row11 to row15 is for third image and so on.

Would appreciate any expert help on this. Thanks
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
I'm not sure what you want. Something like this perhaps

Code:
Sub test()
Range("A1:F5").CopyPicture
Range("A6").Select
ActiveSheet.Paste
End Sub
 

LearnMeExcel

Well-known Member
Joined
Aug 11, 2009
Messages
728
Hi peter
i want to ask u
why u select the range A6 then paste the picture with activesheet
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650

ADVERTISEMENT

To ensure that the picture is pasted into the correct location.
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Actually, this also works

Code:
Sub test()
With ActiveSheet
    .Range("A1:F5").CopyPicture
    .Paste .Range("A6")
End With
End Sub
 

LearnMeExcel

Well-known Member
Joined
Aug 11, 2009
Messages
728

ADVERTISEMENT

Hi peter
i tested this code
is it the same as ur code
Code:
Sub Test1()
Range("a1:f5").CopyPicture
Range("a6").PasteSpecial
End Sub
 

Chuthry

New Member
Joined
Mar 28, 2010
Messages
33
Hi this does not solve my issue totally

The macro need to be able to paste 2nd screenshot from row 6 and to paste 3rd screenshot from row10

Macro need to be smart enough to perform this.

Is there any way to have a macro to print based on user selection for screenshot?
Example, if user want to print 1st and 3rd screenshot can there be a checkbox to for user to select and send the screenshot to printer for printing?
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Do you mean like this:

Code:
Sub test()
With ActiveSheet
    .Range("A1:F5").CopyPicture
    .Paste Destination:=.Range("A6")
    .Range("A6:F10").PrintOut
End With
End Sub

I don't understand about the second screenshot - surely it will be the same as the first?
 

Watch MrExcel Video

Forum statistics

Threads
1,108,481
Messages
5,523,203
Members
409,504
Latest member
Joshcurrie

This Week's Hot Topics

Top