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
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

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
746
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
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
746
Office Version
  1. 365
  2. 2021
Platform
  1. Windows

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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,487
Messages
5,831,988
Members
430,100
Latest member
namhnz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top