Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Username and loading of PPA file (PP 2003)

    Is it possible to get hold of the 'user information' under VBA for a presentation?

    I need to check the value of the 'username' against stored value but can't get hold of it.


    Also, while I am at it - another issue. I created a test presentation and sent it to a colleague for testing. She already has the .pot and .ppa file (used to create this presentation) and saved in correct locations. What she finds is that when she tries to open my ppt file, it does *not* load the template (.ppa) and thus my toolbar is missing from it! Any ideas why that would be the case?

    Thanks.

    Robie.
    Attached Images Attached Images
    Thanks.
    Robie

  2. #2
    3 Star Lounger
    Join Date
    Feb 2007
    Location
    Durham, Durham, United Kingdom
    Posts
    286
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Fot the first you could try

    MsgBox ActivePresentation.BuiltInDocumentProperties("Auth or")

    Note this is not the logged on user name you can get thet from:
    MsgBox Environ("USERNAME")


    I'm confused by the rest:
    A ppa isn't a template it's an AddIn and it can't be loaded by a ppt file. If you explain what you are trying to do I may be able to help.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by JohnWilson View Post
    Fot the first you could try

    MsgBox ActivePresentation.BuiltInDocumentProperties("Auth or")

    Note this is not the logged on user name you can get thet from:
    MsgBox Environ("USERNAME")


    I'm confused by the rest:
    A ppa isn't a template it's an AddIn and it can't be loaded by a ppt file. If you explain what you are trying to do I may be able to help.
    Thanks for your response John.

    I come from a Word world and not too knowledgeable about PP. Anyway, the idea was that the add-in would be loaded automatically if it is not loaded already. It seems that *all* company users will need to manually load the .ppa file for the new PP template I am creating. I was hoping there was some 'automatic' way of adding the .ppa file when a presentation template is first opened so that the users need not worry about loading an addin.

    Robie
    Thanks.
    Robie

  4. #4
    3 Star Lounger
    Join Date
    Feb 2007
    Location
    Durham, Durham, United Kingdom
    Posts
    286
    Thanks
    0
    Thanked 10 Times in 10 Posts
    PowerPoint isn't that simple unfortunately.

    Once loaded the ppa will stay loaded and you can make it auto load with a registry entry. This is best built into an installer. (If this is non commercial I could probably create this for you)

    You might want to consider having the ppa always loaded and detecting your template being used. We always make the ppa create new menu items to run the code but since I don't know your objective it's not clear whether this would work well. I'm at Microsoft Seattle at the moment but will be back in the UK tommorow. You are welcome to contact me but realise that help will only be free if this is non commercial . john ATSIGNHERE pptalchemy.co.uk

    John

  5. #5
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by JohnWilson View Post
    PowerPoint isn't that simple unfortunately.

    Once loaded the ppa will stay loaded and you can make it auto load with a registry entry. This is best built into an installer. (If this is non commercial I could probably create this for you)

    You might want to consider having the ppa always loaded and detecting your template being used. We always make the ppa create new menu items to run the code but since I don't know your objective it's not clear whether this would work well. I'm at Microsoft Seattle at the moment but will be back in the UK tommorow. You are welcome to contact me but realise that help will only be free if this is non commercial . john ATSIGNHERE pptalchemy.co.uk

    John
    Thanks John - apologies for late reply but just came back to the forum yesterday. I think I will have to live with each user loading the .PPA file when the template is used for the first time. I think registry option is out of the question as it services will not allow that.
    Thanks.
    Robie

Posting Permissions

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