Consulting

Results 1 to 4 of 4

Thread: User name

  1. #1
    VBAX Tutor
    Joined
    Dec 2006
    Posts
    271
    Location

    User name

    Is it possible to get the application user name when using powerpoint in a similar same way as you can in excel by using [vba]application.username[/vba]

  2. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Hi,

    Not using the PPT object model.
    See Shyam Pillai's solution to this problem.
    http://skp.mvps.org/off00004.htm
    Cheers
    Andy

  3. #3
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    Hi Andy, How are tags going?

    Does this do it?

    Sub username()
    Msgbox Environ("USERNAME")
    End Sub
    Last edited by Aussiebear; 04-28-2023 at 02:33 AM. Reason: Adjusted the code tags
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  4. #4
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    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.
    Cheers
    Andy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •