+ Reply to Thread
Results 1 to 2 of 2

I am looking to find current Template Path

  1. #1
    Registered User
    Join Date
    06-17-2009
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    84

    I am looking to find current Template Path

    Hi All,
    I am need of finding a Template path.

    The current Path of Template is "C:\Users\Me\Somewhere In Cloud\Location of Template\Template.xlt"

    If I right click the Template and select open file then
    OldPath = ActiveWorkbook.Path ' Returns "C:\Users\Me\Somewhere In Cloud\Location of Template\"


    However if I double click the Template to open it, I get the following Results:

    OldPath = Application.TemplatesPath 'Will return "C:\Users\Me\AppData\Roaming\Microsoft\Templates\"
    OldPath = CurDir() ' Returns what ever path I happened to have saved an excel workbook in.
    OldPath = ActiveWorkbook.Path ' Returns ""
    OldPath = Application.ActiveWorkbook.path ' Returns ""

    I need to have OldPath = "C:\Users\Me\Somewhere In Cloud\Location of Template\Template.xlt" Note this location will be different for every user

    I will need my clients to be able to do either option. As you all know, people will double click!

    Epscan

  2. #2
    Registered User
    Join Date
    06-17-2009
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    84

    Re: I am looking to find current Template Path

    Bump Any Ideas out there?

+ 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: 1
    Last Post: 11-26-2013, 08:46 PM
  2. save as pdf in current path?
    By bruizer31 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2013, 09:07 PM
  3. [SOLVED] Current file path
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2012, 02:33 AM
  4. How to set GetOpenfile dialog start path to current open files path.
    By Michael Wise in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2010, 02:24 PM
  5. [SOLVED] Finding Current Path
    By Mike C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2005, 05:06 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