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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,223,646
Messages
6,173,531
Members
452,520
Latest member
Pingaware

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