Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49892

Obtaining Email Address associated with Office Account

$
0
0
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 joe@company.com - but if Bob opens it on his computer it will recognize that his office365 account is bob@company.com.

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 joe@company.com 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!

Viewing all articles
Browse latest Browse all 49892

Trending Articles