» 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:
- Marketing Plan: A Handbook with Marketing Plan
- The Intelligent Investor: The Classic Bestseller on Value Investing
- Microsoft Excel 2002 Visual Basic for Applications Step by Step
- Infectious Greed: How Deceit and Risk Corrupted the Financial Markets
- Not-for-Profit Accounting Made Easy
- The Ernst & Young Business Plan Guide
No comments have been submitted.

