-
"File" is a variable. You can set it to whatever you want.
1. Derived from the code as shown
File = Folder & ActiveWorkbook.Name
File = Left(File, InStrRev(File, ".")) & "pdf"
2. Hard coded to a specific name e.g. File = "C:\Test\Test.pdf"
3. Allows you to pick e.g. File = Application.GetOpenFilename()
What are you after?
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules