+ Reply to Thread
Results 1 to 2 of 2

Exporting as a PDF then openeing folder location rather than actual file...

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    1

    Exporting as a PDF then openeing folder location rather than actual file...

    Hi all,

    Hoping you can help...

    I've borrowed/pieced together some code to export my sheet as a PDF and allow the user to choose their own location to save the file. What i'd then like to do is open up the folder they chose so that the user can see the new pdf alongside the existing files in the folder (the folder will contain a series of documents about a customers booking, e.g. invoice, confirmation letter etc)

    I've added on some code to the end which opens the file path as it was selected by the user but it includes the entire filepath rather than stopping at the folder location (note i've set the open after publish option to false already)

    essentially i need to cut the final part of the file path off from "Fname" in the final line of code but because this is saved as a variant from the very first line of the code I don't know how to do this....

    Please Login or Register  to view this content.
    hope you can help - shout back with any questions if i've not been very clear!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Exporting as a PDF then openeing folder location rather than actual file...

    Try this:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. create new folder at one location and copy photos in that folder from other location
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 05:20 AM
  2. Excel file link on mac opening containing folder not actual excel file
    By eldesso1 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 12-05-2013, 03:13 PM
  3. [SOLVED] Macro to Copy excel file from a location to a folder on Desktop
    By harish.chinni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 02:17 AM
  4. Browse for File with Suggested Folder Location?
    By Khirsah17 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2010, 09:10 AM
  5. Excel template in Public Folder opens actual file
    By XP in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2006, 10:45 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