+ Reply to Thread
Results 1 to 5 of 5

Obtaining Email Address associated with Office Account

  1. #1
    Registered User
    Join Date
    06-20-2019
    Location
    Minnesota
    MS-Off Ver
    Office 2019
    Posts
    39

    Obtaining Email Address associated with Office Account

    Hello!

    I am looking for a VBA that can recognize the Office365 account email address associated with the user who is opening it. For example, if I open it on my computer that has my office365 account logged into it, it will recognize that I am [email protected] - but if Bob opens it on his computer it will recognize that his office365 account is [email protected].

    The reason for doing this is that I want to be able to set parameters that the workbook will only show each user specified rows. Aka I only want Joe to see rows 4-10 so it hides all others when it recognizes that [email protected] is the one who opened the workbook.

    It also needs to work for both macs & pcs - hence why I would like it to pull from the office365 account.

    Any help is greatly appreciated!

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Obtaining Email Address associated with Office Account

    Found this @ stackoverflow.com... don't think it'll work on macs.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Obtaining Email Address associated with Office Account

    A little simpler version...
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-20-2019
    Location
    Minnesota
    MS-Off Ver
    Office 2019
    Posts
    39

    Re: Obtaining Email Address associated with Office Account

    I am testing on a Mac and both options you gave throw the same error related to ActiveX.
    Attachment 659507

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Obtaining Email Address associated with Office Account

    Can't help you there, never touched a Mac.

+ 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. Obtaining Cell Address and Worksheet for Formula
    By shp025 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2017, 05:55 PM
  2. [SOLVED] vba email send from excel - ignore second email address if "ENTER EMAIL ADDRESS"
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2016, 07:22 AM
  3. Replies: 2
    Last Post: 02-25-2013, 10:40 AM
  4. Replies: 1
    Last Post: 03-08-2012, 01:57 PM
  5. Obtaining address history
    By jempoole in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2009, 02:38 PM
  6. Replies: 2
    Last Post: 02-22-2005, 08:06 AM

Tags for this Thread

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