+ Reply to Thread
Results 1 to 8 of 8

Posting PDF to file

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Posting PDF to file

    Hello,
    I am trying to change the path where the PDF file will go.
    This is the formula:
    Please Login or Register  to view this content.
    At the moment it goes to the personal file but I want it to go to the MIS Invoice file
    Any help would be appreciated.
    Thank you in advanvce.
    Jesse
    Last edited by Jesse Lyons; 11-27-2021 at 10:07 AM. Reason: Adding Tags

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Posting PDF to file

    hi have you tried changing this line to [your new file path]

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Re: Posting PDF to file

    Hello Crooza,
    I cannot seem to find how to change to find it's new resting place. "MIS file, sub folder Invoice,".
    It still goes to the same file, personal file, sub folder Invoice. If I change "\" with "MIS" ,my new file, I get it in the main personal file whereas before it would go to a sub folder within the personal file.
    Tried various changes but get the BUG signal.
    Thanks for trying
    Jesse
    Last edited by Jesse Lyons; 11-30-2021 at 06:12 AM. Reason: Work on the attachment

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Posting PDF to file

    Open the folder where you wish the pdf to go and copy the address from the explorer toolbar

    past then to

    Please Login or Register  to view this content.
    example filepath
    Last edited by nigelog; 11-30-2021 at 08:03 AM.

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Posting PDF to file

    Write the full path like “c:\mis\”

  6. #6
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Re: Posting PDF to file

    Please Login or Register  to view this content.
    Dim rng As Range
    Dim newpdfname As String
    Dim pdfpath As String
    Set rng = Application.Selection 'This selects the range of cells to be formatted into PDF
    newpdfname = Application.InputBox("Please Enter a name for the new PDF") ' This brings up a box to enter the name of which the PDF file is to be saved
    pdfpath = "C:\MIS\& newpdfname"
    rng.ExportAsFixedFormat Type:=xlTypePDF, _
    Filename:=pdfpath, _
    Quality:=xlQualityStandard, _
    IncludeDocProperties:=True, _
    IgnorePrintAreas:=False

    End Sub[/CODE]

    the area of the code that I have marked with a is showing up yellow when i run the above suggestions. Neither seem to be working.
    Thank you for the suggestions.
    Jesse
    Last edited by davesexcel; 11-30-2021 at 10:30 AM.

  7. #7
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Posting PDF to file

    Please Login or Register  to view this content.

  8. #8
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Posting PDF to file

    The path name is in inverted commas. The variable for the file name needs to be outside the inverted commas

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 12-23-2022, 04:02 AM
  2. How to Attach Excel File While Posting New Thread?
    By Rajeshkumar R in forum Excel General
    Replies: 3
    Last Post: 02-27-2012, 07:04 AM
  3. Retrieving File Info and Posting on Worksheet
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2010, 06:04 PM
  4. Posting Thread Issue - Can't attach file
    By Fast Forward in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 1
    Last Post: 10-03-2007, 02:37 AM
  5. posting excel file online.
    By thejollibengali in forum Excel General
    Replies: 1
    Last Post: 06-28-2007, 04:12 PM
  6. Replies: 7
    Last Post: 08-08-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1