I'm having a rough time getting my VBA codes to work in Zoho, while it works perfectly in Excel.
UserName:
In Excel, I use the WorkBook_Open() and Application.UserName functions to get the UserName logged in. I know this is not possible (soon?) for Zoho. So instead, my understanding is that I need to label a cell as 'UserName' and then the user is required to input their UserName before editing. Not fool-proof or error-proof, but it is a slight workaround.
However...its not working for me. And im not sure if its other code problems, or the UserName doesnt work at all anymore.
When you open a WORKBOOK there is 10 SHEETS.
Sheet 1 is a "login" page, where a user enters his name.
I have labeled (merged) Cell E18:h18 as 'UserName'.
Then on all other sheets (Sheet 2 through Sheet 10) where the actual editing will take place, I want to have:
Comment Tracking:
The UserName and DATE of each edit added as a comment to the respective cell.
This should only apply to Column B and Column E and Column H, no other columns should be effected.
When a user makes an input to a cell in these columns, then a comment is auto-recorded with a MMM DD date stamp, and the UserName.
Author Tracking:
Depending on UserName logged in, the user should be forced to have ALL data entered in a single assigned font color.
For example... 'UserName 1' should be forced to only have Color 37 as his fonts. While 'UserName 2' is forced to only have Color 25 as his fonts.
Would love if someone can help me write this code, as nothing I have tried has worked in Zoho, while it all works in Excel.