Advertisement

05.30.2008 at 07:30AM PDT, ID: 23444698
[x]
Attachment Details

Need to append printing to Adobe using Macro

Asked by thewayne73 in Microsoft Excel Spreadsheet Software

Tags: Microsoft, Excel, 2007

We have a macro set up to change the value of a cell, then print the worksheet.  The problem is that we are wanting to print it to Adobe and everytime it prints...it ask for a file name which defeats the purpose of the macro.  

Here is the script we are using:

 Sub Print_Summary_Sheets()
' Steps through Units in Run - Single Events tab and copies resulting output from PLL and IRPA Calc tab
' and prints each corresponding "Results Summary - Single Event" sheet to current printer
For i = 4 To 10
    Worksheets("Run - Single Event").Cells(6, 3).Value = Worksheets("Risk").Cells(i, 1).Value
    Sheets("Results Summary - Single Event").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Next i

End Sub
Start Free Trial
[+][-]05.31.2008 at 02:05PM PDT, ID: 21685053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 07:58AM PDT, ID: 21692568

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 08:12AM PDT, ID: 21692700

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2007
Sign Up Now!
Solution Provided By: rberke
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628