+ Reply to Thread
Results 1 to 2 of 2

Get directory path where macro was opened manually.

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Get directory path where macro was opened manually.

    Hi,

    I have a macro. I open the macro manually from a location on the hard-drive. From the macro i want to save some data to the same location that the macro was opened from.

    Any ideas?

    Manually, if i do a save as the location of where i opened the macro from comes up but how do i get this location from the macro? Any thoughts.
    Last edited by welchs101; 09-17-2012 at 07:50 AM.

  2. #2
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Get directory path where macro was opened manually.

    found something on this site from another article which works

    Please Login or Register  to view this content.
    the above code gives the directory / path from which the macro was opened.

+ 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