Changing the Default Position of a Dynamic Comment as it overlaps the Cell.
Dear Forum,
I am dynamically making a comment with VBA which unfortunately is overlapping the CELL of which its a comment..
I want it to be more on the RIGHT of the cell as thats the last filled column with plenty of Open Space on the RIGHT..
With Sheets(NewSheetName)
Comm = Format(Range("H4").Value, Strdate) & Chr(10) & "Opening Balance : " & Chr(10) & _
Application.WorksheetFunction.Text(.Cells(4, 7), "[>9999999]""Rs ""#\,##\,##\,##0.00;[>99999]""Rs ""#\,##\,##0.00;""Rs ""#,##0.00")
.Cells(8, 10).AddComment Text:=Comm
.Cells(8, 10).Comment.Visible = True
.Cells(8, 10).Comment.Shape.TextFrame.AutoSize = True
End With
With Sheets(NewSheetName).Cells(8, 10).Comment.Shape.TextFrame.Characters.Font
.Name = "Times New Roman"
.Size = 11
.Bold = True
.ColorIndex = 5
End With
this entire sheet is Auto-Generated and therefore theres no need to Insert COmments but am highlighting a particular cell with a dynamic comment but it overlaps the same cell which it is supposed to highlight..which is cell J8
SO please advise what needs to be done..
Warm Regards
e4excel
Bookmarks