+ Reply to Thread
Results 1 to 3 of 3

Opening Word template: Path

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    9

    Opening Word template: Path

    Greetings!

    When opening a Word 2010 document using VBA in Excel 2010, do I need to type the entire path. For example, I am using a template as follows
    Please Login or Register  to view this content.
    If I want to transfer this workbook to a different computer, or would like to allow another user to use the workbook VBA code, I would like an easier way to have the code find the document template without having to re-write the code each time. Can this be accomplished?

    Thanks

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Opening Word template: Path

    Hi,

    You can use the Application.GetOpenFilename function to manually pick the template or if it will always be in a folder on the desktop named Project then you can use WScript

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Opening Word template: Path

    Thanks you, abousetta. Worked perfectly.

+ 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