VB Code Working in 2013 not working in 365

lol.xls

Board Regular
Joined
Oct 5, 2009
Messages
174
I've been using this code for over 5 years (since Excel 2007), and it's worked fine until I begain using office 365. I have the 32-bit version installed but I am unable to us VB to create PDF's not only with this code, in this workbook, but in various workbooks where I used to be able to. Any suggestions?

Code:
Sub pdf_print_test()

Dim FileName As String, fPath As String
FileName = Left(ActiveWorkbook.Name, InStr(1, ActiveWorkbook.Name, ".xls") - 1) & ".pdf"
fPath = ActiveWorkbook.Path & Application.PathSeparator


Sheets(Array("Payroll Summary", "Time Sheet")).Select


FileName = RDB_Create_PDF(ActiveSheet, fPath + FileName, True, False)


    Sheets("Payroll Summary").Select
    Range("C11").Select
End Sub
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
OK, appears to be a windows update that broke it. Anyone using Ron's code may need to comment out the following:
brokepdf.png
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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