Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Has anybody been able to read a comment of 600+ characters. I have not found any documentations saying that this is not possible, but my strings trunckate at random lengths. Dim txt as string txt = String(600," ") txt = cells(1,1).comment.text() The comment in cell(1,1) is very long, but it trunckates. I am using Excel 2002 SP3. Anyone familiar with this problem. Thanks for the help. Jose |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This worked for me in xl2002:
Option Explicit Sub testme01() Dim myStr1 As String Dim myStr2 As String myStr1 = Application.Rept("asdf ", 1200) MsgBox Len(myStr1) With ActiveCell If .Comment Is Nothing Then 'do nothing Else .Comment.Delete End If .AddComment Text:=myStr1 myStr2 = .Comment.Text MsgBox Len(myStr2) End With End Sub (I used 120*5=600 and it worked. I upped it to 1200 (1200*5) and it still worked.) Jose wrote: Hi, Has anybody been able to read a comment of 600+ characters. I have not found any documentations saying that this is not possible, but my strings trunckate at random lengths. Dim txt as string txt = String(600," ") txt = cells(1,1).comment.text() The comment in cell(1,1) is very long, but it trunckates. I am using Excel 2002 SP3. Anyone familiar with this problem. Thanks for the help. Jose -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can insert digital ink into Excel cell or a cell comment? | Excel Discussion (Misc queries) | |||
copy comment content to cell content as data not as comment | Excel Discussion (Misc queries) | |||
Create Cell Comment based on text in a cell on another worksheet | Excel Discussion (Misc queries) | |||
a comment plugin & copy paste directly from excel to comment ? fr. | Excel Worksheet Functions | |||
Create a formula into a String then assign string to a cell | Excel Programming |