I have a macro that is worksheet activated. It works great and has for a long time now, however whenever i edit the comment with BOLD or color it reverts back to standard text the next time the comment is activated. Ive attached the file. Could someone please help. Thank you.
[VBA]
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
'copy previous value to another sheet
'create another worksheet to put data on and hide it
Sheet2.Range(Target.Address) = Target.Text
Const COMMENT_HEAD As String = "ITEM HISTORY BELOW"
'====================================
Dim strDate As String
Dim strTime As String
Dim strOldComment As String
strDate = date
strTime = Time
'====================================
'//clearing more than one cell causes an error which will allow you to delete
On Error Resume Next
'//(it will not overwrite an existing comment but will add after)
With Target
That didnt help. It appears that the 1st text in the comment determines what they all will be. Example: If I change the first letter in the comment to Bold Blue then when it regenerates it makes everything bold blue.