• Username and loading of PPA file (PP 2003)

    Author
    Topic
    #475151

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #1270013

      Fot the first you could try

      MsgBox ActivePresentation.BuiltInDocumentProperties(“Author”)

      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.

      • #1270025

        Fot the first you could try

        MsgBox ActivePresentation.BuiltInDocumentProperties(“Author”)

        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

    • #1270099

      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

      • #1270926

        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.

    Viewing 1 reply thread
    Reply To: Username and loading of PPA file (PP 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: