accessman2
Registered User.
- Local time
- Today, 09:59
- Joined
- Sep 15, 2005
- Messages
- 335
Hi,
suppose the cmt is string variable
cmt = "Invoice 1:" & Chr(10)
cmt = cmt & "Num: 1" & Chr(10)
cmt = cmt & "Company: Microsoft"
cmt = cmt & Chr(10)
cmt = cmt & "Invoice 2:" & Chr(10)
cmt = cmt & "Num: 2" & Chr(10)
cmt = cmt & "Company: IBM"
.Worksheets(1).Cells(1, 5).AddComment cmt
.Worksheets(1).Cells(1, 5).Comment.Shape.TextFrame.Characters.Font.Bold = False
I used the above code to do the comment, but I want to set "Invoice 1" and "Invoice 2" to be Bold = True only.
How can I change?
Does anybody know that? Thanks.
suppose the cmt is string variable
cmt = "Invoice 1:" & Chr(10)
cmt = cmt & "Num: 1" & Chr(10)
cmt = cmt & "Company: Microsoft"
cmt = cmt & Chr(10)
cmt = cmt & "Invoice 2:" & Chr(10)
cmt = cmt & "Num: 2" & Chr(10)
cmt = cmt & "Company: IBM"
.Worksheets(1).Cells(1, 5).AddComment cmt
.Worksheets(1).Cells(1, 5).Comment.Shape.TextFrame.Characters.Font.Bold = False
I used the above code to do the comment, but I want to set "Invoice 1" and "Invoice 2" to be Bold = True only.
How can I change?
Does anybody know that? Thanks.