Excel to PDF using Primo PDF

moneytastesbad

Board Regular
Joined
Aug 28, 2006
Messages
106
Hello,

I know that this is everyones favorite subject :)

What I need to do is convert a single sheet in my workbook to PDF using Primo PDF, ans save that (the PDF) to a File Path and Folder specified within a cell in the workbook.

Here is what I have so far:

A
Code:
ctiveWorkbook.Save
    Path = Application.Range("FilePath").Value
    Folder = Application.Range("ProgramName").Value
    File = Application.Range("ProgramName").Value
        On Error Resume Next
        ActiveWorkbook.SaveAs Filename:= _
            Path & Folder & "\" & File, FileFormat:=xlNormal _
            , Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
            CreateBackup:=False
        On Error GoTo 0
    Application.ActivePrinter = "PrimoPDF on Ne00:"
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
        "PrimoPDF on Ne00:", Collate:=True


I modified the code that I found here http://www.mrexcel.com/board2/viewtopic.php?t=234661 to come up with what I have now.

However, this does not seem to be working for me. All I am doing is printing via Primo PDF( converting to PDF). It is not saving the file where I specified. It is asking me where I want to save it to.

Can anyone Help me please?!?!?!?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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
Back
Top