Forum Discussion
Highlight active row/column in Excel
- FastTrack-F1Nov 07, 2022Copper Contributor
NikolinoDE Thanks, but the solutions do not apply to Excel Online...
- NikolinoDENov 07, 2022Platinum Contributor
Another try...my link :))
Highlight active row and column without VBA
Actually, the VBA code should also work, but it has to be integrated into the workbook in advance from a subscription or desktop version, since you cannot create VBA code with online Excel.
However, you can open and edit the macro-enabled workbook in Excel for web.
Work with VBA macros in Excel for the web
Example VBA code input: Press ALT + F11 key combination to open VBA.
Then select ThisWorkbook in the left project explorer,
double click it to open the module,
and copy and paste the following VBA code into the blank module:
Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range) Static xLastRng As Range On Error Resume Next Target.Interior.ColorIndex = 6 xLastRng.Interior.ColorIndex = xlColorIndexNone Set xLastRng = Target End SubAdd. Infos:
- FastTrack-F1Nov 08, 2022Copper Contributor
NikolinoDE Thanks for your proposals, but did you test them in Excel online? I cannot see a working solution!
https://support.microsoft.com/en-us/office/work-with-vba-macros-in-excel-for-the-web-98784ad0-898c-43aa-a1da-4f0fb5014343: "Although you can't create, run, or edit VBA (Visual Basic for Applications) macros in Excel for the web,..."
Conditional formatting also does not work, as it needs manual recalculation...