VBA code is not working, but works perfectly in Excel.

VBA code is not working, but works perfectly in Excel.

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.




      • Sticky Posts

      • Slicers are now available in Zoho Sheet—filter your data interactively

        At Zoho Sheet, we diligently track user requests and feedback. In line with this, based on extensive user requests, we've integrated Slicers to pivot tables and are delighted to announce its release. Slicers are interactive visual filters that have add,
      • Check out the new Checkbox in Zoho Sheet

        Checkbox, the simple GUI widget that lets you choose between two mutually exclusive options i.e Yes or No, is now in Zoho Sheet. Having made it across the web, Checkbox is familiar but is still elusive to most spreadsheet software. Special developer ribbons, macros and all other complexities to add a checkbox to a spreadsheet? Not in Zoho Sheet. How to add Checkbox to Zoho Sheet? Adding a Checkbox in Zoho Sheet is simple. Select a cell/range and choose "Checkbox" in "Input Controls" under the Format
      • Format and analyze spreadsheet data with Zoho Sheet's Table

        While a spreadsheet helps you compile data for easy analysis, formatting helps make your data more comprehensible. We are happy to announce the release of Table, a crucial tool for improving data formatting in Zoho Sheet. More than a formatting tool,
      • Introducing Data Bars: Graphically represent changes in data within the cells

        Conditional formatting has helped millions of spreadsheet users analyze and highlight their data more efficiently. In addition to the classic rules, color scales, and icon sets available in Zoho Sheet, you can now apply Data Bars, a convenient method
      • Zia in Zoho Sheet now makes suggestions on conditional formats, picklists, and checkboxes

        Zia, Zoho's popular AI assistant, has been helping users succeed across Zoho applications since inception. In Zoho Sheet, Zia helps users efficiently build reports and analyze data with recommendations about data cleaning, charts, and pivot table. Also,