» Conditional formatting depending on a cell comment using VBA in Microsoft Excel
CATEGORY - Printing in VBA
VERSION - All Microsoft Excel Versions
How can I make a conditional formatting depending on a cell commentary?
Answer:
Insert the following code into the standard module Formula for conditioned formatting: =test(Data)=True
Function Test(rng As Range) As Boolean
If rng.Comment.Text = "Test" Then
Test = True
Else
Test = False
End If
End Function
Book Store:
Recommended Books:
- How to Pay Zero Taxes (Annual)
- Final Accounting: Ambition, Greed and the Fall of Arthur Andersen
- Lower Your Taxes - Big Time! : Wealth-Building, Tax Reduction Secrets from an IRS Insider
- Investing in Real Estate, Fourth Edition
- Treason: Liberal Treachery from the Cold War to the War on Terrorism
- Special Edition Using Microsoft Office XP
No comments have been submitted.

