+ Reply to Thread
Results 1 to 4 of 4

Mac VBA - Get Mac username

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    United States
    MS-Off Ver
    Mac 2011 and Windows Excel 2010
    Posts
    14

    Mac VBA - Get Mac username

    Hi,

    I am using mac excel. I want to know how to get the mac username in vba.

    For example, in mac terminal, if you type

    Please Login or Register  to view this content.
    we get <username>

    I just need to know how we can do it in vba.

    Thanks a lot for the help.

    Charun
    Last edited by stcharun; 01-28-2013 at 04:59 PM.

  2. #2
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Re: Mac VBA - Get Mac username

    Hi stcharun,

    I've not used Excel for Mac before but have you tried:

    Please Login or Register  to view this content.
    The first returns the username provided in Office and the second the windows username, might work for Mac
    If the post was helpful please click the black star on the bottom left to add some reputation and mark your thread as SOLVED.

    A day with nothing new achieved or learned, albeit however small, is a day lost forever?

    Constant Never Ending Improvement

  3. #3
    Registered User
    Join Date
    07-20-2012
    Location
    United States
    MS-Off Ver
    Mac 2011 and Windows Excel 2010
    Posts
    14

    Re: Mac VBA - Get Mac username

    Thanks for that. Well, it gives me the First Name and Last Name. But, the mac user is mostly first letter of first name followed by the last name. Well, I could use modify this to get it, but it would definitely help if I could get the mac name directly as I am not so sure if the relationship between mac name and user name would hold true for everyone. But, thanks a lot for this.

    Charun

  4. #4
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Re: Mac VBA - Get Mac username

    You can check the link below it provides lots of additional info for Mac. I generally use the UUID in iOS apps as they are obviously unique perhaps you could try that.

    http://www.rondebruin.nl/mac.htm

+ 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