LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 3
Default Macro to Publish as PDF

Hello all,

So I have a sheet within a workbook that I am wanting to save/publish as a PDF file. the code i have thus far is :

Sub Publish2()
'
' Publish2 Macro
'

'
Sheets("bat").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\Liam\Desktop\BAT review.pdf", Quality:=xlQualityStandard _
, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
End Sub

Nice and simple and does the trick. The question I have is how can I make define the directory string such that a multitude of users on different computers can all run this macro?

Thanks in advance!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Publish as Wed Page JDH Setting up and Configuration of Excel 0 April 1st 08 03:21 PM
publish iwinlof Excel Discussion (Misc queries) 0 March 23rd 06 10:59 PM
publish to web G. Beard New Users to Excel 0 October 3rd 05 06:02 PM
How do I publish a Excel chart using vba macro? Martin N Excel Programming 1 October 5th 04 07:01 AM
Publish Macro Brian Matlack[_2_] Excel Programming 0 December 8th 03 09:23 PM


All times are GMT +1. The time now is 06:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"