PDF printing returns a black background on image.

jadif01

New Member
Joined
Jul 18, 2013
Messages
5
Hello,

I am trying to write a macro which automatically PDF prints a worksheet and saves it in a folder. I have succesfully done this however the background of the images on the worksheet have black backgrounds and thus cannot be seen. My code is:

Code:
Sub pdfmemo() 
     
    Range("A1:H31").Select 
    ActiveSheet.PageSetup.PrintArea = "$A$1:$H$31" 
    Application.ActivePrinter = "doPDF v7 on DOP7:" 
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="H:\1) Dry F Automation\Memos\Dryf Memo " & Range("Dryf!F6").Value, _ 
    Quality:=xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas _ 
    :=False, OpenAfterPublish:=False 
     
End Sub

When I do this manually it works fine, it's only when I use the macro to do it it returns a black background.

Any help on this would be greatly appreciated. :biggrin:

jadif01
 
I am completely lost. Do you mean you save a PDF into a worksheet which has a black background?
Hello,

I am trying to write a macro which automatically PDF prints a worksheet and saves it in a folder. I have succesfully done this however the background of the processed images on the worksheet have black backgrounds and thus cannot be seen. My code is:

Code:
Sub pdfmemo() 
     
    Range("A1:H31").Select 
    ActiveSheet.PageSetup.PrintArea = "$A$1:$H$31" 
    Application.ActivePrinter = "doPDF v7 on DOP7:" 
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="H:\1) Dry F Automation\Memos\Dryf Memo " & Range("Dryf!F6").Value, _ 
    Quality:=xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas _ 
    :=False, OpenAfterPublish:=False 
     
End Sub

When I do this manually it works fine, it's only when I use the macro to do it it returns a black background.

Any help on this would be greatly appreciated. :biggrin:

jadif01
 
Upvote 0

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