Chewyhairball
Active Member
- Joined
- Nov 30, 2017
- Messages
- 312
- Office Version
- 365
- Platform
- Windows
Hi
I have the following code that converts the cell contents in the comments column in 3 different tables, when cell BH3 or BH4 changes. All the tables are on the same sheet.
What I have does work but I am guessing there would be a tidier, more efficient way to write this.
thanks
Rory
I have the following code that converts the cell contents in the comments column in 3 different tables, when cell BH3 or BH4 changes. All the tables are on the same sheet.
What I have does work but I am guessing there would be a tidier, more efficient way to write this.
thanks
Rory
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("bh3:bh4")) Is Nothing Then
Range("Results1[[#Data],[Comments]]").Select
Call ConvertToComment
Range("Results2[[#Data],[Comments]]").Select
Call ConvertToComment
Range("Results230[[#Data],[Comments]]").Select
Call ConvertToComment
End If
End Sub