VBA Visual Basic for Applications (Microsoft) FAQ

Office / VBA General

This FAQ is simply some code to show all the current environment variables for the current excel session. Environment variables can be used to test for users, homedrives, no. of processors and domains amoungst other things. It works on windows only (sorry mac users) and I use it most often to obtain the network userid of the current user. This is especially useful where you have different types of access depending on who the user is.