Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
With Cells.Font
.FontStyle = "Regular"
End With
With ActiveCell.Font
.FontStyle = "Bold"
End With
End Sub
hi
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
With Cells.Font
.FontStyle = "regular"
End With
ActiveCell.Interior.ColorIndex = 6 'yellow
With ActiveCell.Font
.FontStyle = "bold"
End With
End Sub
They are not formulas, formulas cannot do this. You would need event macros
Right click the sheet tab where you want this to happen and select view
code. then paste in the code. Press Alt + q and save the workbook
They are not formulas, formulas cannot do this. You would need event macros
Right click the sheet tab where you want this to happen and select view
code. then paste in the code. Press Alt + q and save the workbook
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.