VBA code to get username and time while opening the workbook(workbook open event and Environ$ )

  Рет қаралды 1,805

VBA Automation tutorial point

VBA Automation tutorial point

3 жыл бұрын

Using Environ we can get username while open the workbook in VBA and also learn workbook open events with current time and date

Пікірлер: 10
@souravdey2236
@souravdey2236 Жыл бұрын
If I open the Excel and enter sat my username will appear . But if some other opens the excel after that will his/her name appear in place of my name . If yes , then please suggest to overcome this problem
@vbaautomationtutorialpoint5315
@vbaautomationtutorialpoint5315 Жыл бұрын
In this scenario get last blank row using code once it found then store the user name
@gauravims025
@gauravims025 2 жыл бұрын
we need to use $ after Environ always and also we need to define in Dim, the username as string or there is no need?
@vbaautomationtutorialpoint5315
@vbaautomationtutorialpoint5315 2 жыл бұрын
You can also use only Environ("username") if you want and do not need to declare or define username as string. It will work
@gauravims025
@gauravims025 2 жыл бұрын
@@vbaautomationtutorialpoint5315 i have tried ..its working for my username but if some other user is running ..its not working..do you know wht could be the reason??
@vbaautomationtutorialpoint5315
@vbaautomationtutorialpoint5315 2 жыл бұрын
@@gauravims025 it's return username who,s using system, and for other user its also work if it using another desktop or same desktop by switching user
@vbaautomationtutorialpoint5315
@vbaautomationtutorialpoint5315 2 жыл бұрын
If it useful then ok otherwise please call me for further information
@trilochanjena3836
@trilochanjena3836 7 ай бұрын
how to show username in userform
@vbaautomationtutorialpoint5315
@vbaautomationtutorialpoint5315 7 ай бұрын
Simple Textbox.value= environ("username")
@trilochanjena3836
@trilochanjena3836 7 ай бұрын
@@vbaautomationtutorialpoint5315 thanks.. but i built a login userform for multiple users.. so in the main userform i want to show the username on it..plz guide
VBA code to protect one worksheet or multiple worksheet in Excel
4:09
VBA Automation tutorial point
Рет қаралды 122
VBA - Recognizing the User-Get Username
19:09
D Pineault - Tech, Programming and more
Рет қаралды 1,6 М.
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 183 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 100 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 47 МЛН
June 16, 2024
0:15
PARESHAAN VILLAGE NELLORE VLOGS
Рет қаралды 14 М.
How to create User Login Form in VBA and Excel (Step by Step Guide)
23:02
How to Use Arrays Instead of Ranges in Excel VBA
10:20
Excel Macro Mastery
Рет қаралды 194 М.
Auto run vba project When an Excel Workbook is opened
4:15
Dinesh Kumar Takyar
Рет қаралды 96 М.
Insert user's name in a cell in Excel
4:03
Jignesh Gupta
Рет қаралды 12 М.
Excel VBA ComboBox Match Required
5:17
Dinesh Kumar Takyar
Рет қаралды 14 М.
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 183 МЛН