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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,224,872
Messages
6,181,501
Members
453,047
Latest member
charlie_odd

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