View Full Version : User name
lifeson
10-17-2007, 12:36 AM
Is it possible to get the application user name when using powerpoint in a similar same way as you can in excel by using application.username
Andy Pope
10-17-2007, 01:16 AM
Hi,
Not using the PPT object model.
See Shyam Pillai's solution to this problem.
http://skp.mvps.org/off00004.htm
John Wilson
10-17-2007, 05:14 AM
Hi Andy, How are tags going?
Does this do it?
Sub username()
Msgbox Environ("USERNAME")
End Sub
Andy Pope
10-17-2007, 05:40 AM
Hi John,
Environ does not return the Username, at least form me, which is used in PPT.
Help says,
Returns the String associated with an operating system environment variable
The tags thing is about 80%. There are a lot more scenarios where tags are available than I first thought. Will keep you posted though.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.