» Conditional formatting depending on a cell comment using VBA in Microsoft Excel
CATEGORY - Printing in VBA
VERSION - All Microsoft Excel Versions
Question: 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:
- The Fall of Advertising and the Rise of PR
- The Financial Numbers Game: Detecting Creative Accounting Practices
- Preparing the Marketing Plan (Ama Marketing Toolbox Series New Edition)
- Special Edition Using Microsoft Word 2002
- Microsoft Excel 2002 Visual Basic for Applications Step by Step
- Writing Excel Macros with VBA, 2nd Edition
No comments have been submitted.

