+ Reply to Thread
Results 1 to 7 of 7

Saving to .pdf

  1. #1
    Forum Contributor
    Join Date
    03-04-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    130

    Saving to .pdf

    Hi All,

    I would really appreciate some advice on modifying the code below.

    Is there a way to get it to save to any users desktop, for example if I send the file to a friend I would like to save to their actual desktop not the public desktop without having to change the code each time.
    Also it seems to save the file with "desktop" at the beginning of the file name instead of just the text in cell C2.

    As always thanks in advance.

    Please Login or Register  to view this content.
    Last edited by JohnDoh; 05-19-2013 at 01:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Saving to .pdf

    Play something with this.

    Please Login or Register  to view this content.
    Kind regards, Harry.

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Saving to .pdf

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Saving to .pdf

    Nice short solution @patel45.

    Would it also work on other international versions?
    My previous Pc Desktop (The Netherlands) was called "Bureaublad".
    I don't think so.
    Last edited by HSV; 05-19-2013 at 01:17 PM.

  5. #5
    Forum Contributor
    Join Date
    03-04-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: Saving to .pdf

    Quote Originally Posted by patel45 View Post
    Please Login or Register  to view this content.
    Forgive my ignorance but i'm new to this ,what bit if code does this replace?

  6. #6
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Saving to .pdf

    Please Login or Register  to view this content.
    Last edited by patel45; 05-19-2013 at 12:17 PM.

  7. #7
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Saving to .pdf

    Hi, patel45,

    could you please explain
    Please Login or Register  to view this content.
    against
    Please Login or Register  to view this content.
    why the brackets in the first line and why on earth a variable when a range could be used (as no Dim had been used)? And why the doubled up Filename?

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Last edited by HaHoBe; 05-19-2013 at 01:22 PM. Reason: code added
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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