+ Reply to Thread
Results 1 to 3 of 3

Getting main path (directory) on Mac

  1. #1
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,826

    Getting main path (directory) on Mac

    In VBA on Windows I can enter this:

    Please Login or Register  to view this content.
    and it will give me: C:\Users\MyUserName\

    Is there an equivalent on the MAC?

    Thanks.
    Last edited by jeffreybrown; 06-07-2019 at 11:56 AM. Reason: Please use code tags!

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,907

    Re: Getting main path (directory) on Mac

    Have a look at Ron's code here: http://www.rondebruin.nl/mac/mac007.htm
    Rory

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,826

    Re: Getting main path (directory) on Mac

    Excellent - thank you!

+ 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. [SOLVED] macro to copy excel files only from main directory and sub directory to a specific folder
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2019, 09:49 AM
  2. [SOLVED] Separate complete path to file and directory path
    By drgkt in forum Excel General
    Replies: 19
    Last Post: 10-28-2016, 04:17 PM
  3. [SOLVED] Get directory path from user
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2015, 09:02 PM
  4. How to validate an input dat folder/directory path whether the path has any spaces
    By mahendra.asapu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2015, 02:39 AM
  5. Get Last Directory Name from Dir Path
    By web2xs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2007, 07:37 PM
  6. [SOLVED] Target directory & Path
    By Param in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-27-2006, 08:55 PM
  7. [SOLVED] Need directory path without filename
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2005, 04:05 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