VBA to get username in Powerpoint

Dean76

New Member
Joined
Apr 17, 2016
Messages
37
Hi,

I've been trying to put together some VBA that will find the usename of the person accessing a powerpoint presentation and display it on one of the slides. None of the methods I usually use to obtain the username when working in Excel VBA appear to work in Powerpoint

Fine with the displaying on the slide part, it's getting the name in the firstplace that is bugging me. Application.Username does not work, Environ(“Username”) and Environ$(“Username”) don't work - I'm stumped and google has not been my friend this time

- can anyone help?

Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
No need for answer now - worked it out, Environ("UserName") did work - I had just copied and pasted from webpage and the speach marks were incorrect.....
 
Upvote 0

Forum statistics

Threads
1,214,835
Messages
6,121,880
Members
449,057
Latest member
Moo4247

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top