albertc30
Well-known Member
- Joined
- May 7, 2012
- Messages
- 1,091
- Office Version
- 2019
- Platform
- Windows
Hi all.
I am trying to save the current user to the sheet Customers when form is saved.
I have tried a few things but to no avail;
Instead of the value H to be save from textbox, I want it to save the current username.
Now I could reference this to one sheet where it shows the username and just point the cell in question or, I can use the array I have of currentuser.
Could do with the same but to save date and time too.
As always, much appreciated for all your time.
Cheers.
I am trying to save the current user to the sheet Customers when form is saved.
I have tried a few things but to no avail;
Code:
Sheets("Customers").Cells(i, "H").Value = tbncem.Text
'I have tried
Sheets("Customers").Cells(i, "H").Value = currentuser 'This actually saves the displayed word and not the current user, tried with "currentuser", still no luck.
Instead of the value H to be save from textbox, I want it to save the current username.
Now I could reference this to one sheet where it shows the username and just point the cell in question or, I can use the array I have of currentuser.
Could do with the same but to save date and time too.
As always, much appreciated for all your time.
Cheers.