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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

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?
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,709
Messages
5,512,967
Members
408,928
Latest member
Black Vinyl

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top