![]() |
#1
|
|||
|
|||
![]()
Hello,
I have Excel 2007, get an error when running the following code to create PFD. I can save the exact code and run it on Office360 no problem. I'm interested to know if it's my '07' version or does my machine require an Add-in to run it? Also, apologies regarding my post description, I posted accidentally before completing. '------------------------------------------------- Sub CreatePDF() Worksheets("SCHEDULES").Activate Dim dte As String Dim Adr As String Dim IDw As String Dim path As String Dim fname As String dte = Range("H3").Text Adr = Range("G2").Text IDw = Format(dte, "medium Date") path = "C:\Users\.....\....." fname = Adr & ", " & IDw & ".pdf" ActiveSheet.ExportAsFixedFormat _ Type:=xlTypePDF, _ Filename:=path & fname, _ IgnorePrintAreas:=False ' ,_ ' OpenAfterPublish:=False End Sub '----------------------------------------------- Last edited by psyclone; 01-02-2023 at 06:04 PM. Reason: Posted accidentally before completion |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to create microsoft Excel 2007 and 2010 File in .xlsx format | ipacesetters | Excel | 1 | 12-16-2019 05:13 PM |
How to create Sparklines in older versions of excel. (Excel 2007 and older) | Nicewithit | Excel | 0 | 04-18-2018 08:21 PM |
![]() |
bluenosebex | Mail Merge | 5 | 08-02-2015 05:34 PM |
Create SVG with PPT 2007? | qa1952 | PowerPoint | 0 | 07-14-2015 12:24 PM |
How to create a resizeable simple checkbox Excel 2007 | Imageman100 | Excel | 1 | 01-10-2014 11:53 PM |