VBA to get username

  • Thread starter Thread starter Fabio Carvalho
  • Start date Start date
F

Fabio Carvalho

Hello,

I am trying to insert the username found in Tools/Options into a textbox via
a macro. In Word, I was able to use "Application.Username". Is there an
equivalent way to get the username in Powerpoint 2000? If not, how else may
I do this?

Thank you in advance for any assistance.

Fabio Carvalho
(e-mail address removed)
 
ok, i know that the original post is old but the solution is to get the username via e.g. excel (actually is the same username!).
Dim x As Object = CreateObject("Excel.Application")
msgbox (x.UserName)
x.quit

you can also set a new username
x.UserName="my new username"

regards
isidoros

 
Back
Top