Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Getting the FULL text of a Comment

I've tried Cell.NoteText, Cell.Comment.Text, Cell.Comment.Shape.DrawingObject.Text and they all seem to return only the first 255 characters of the Comment. How do I get the full text? I'm not interested in the formatting, just the plain text.

Phil.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Getting the FULL text of a Comment

Phil,

Typically String variables are limited to 255 characters. If your macro is using the Comment text to feed a String variable, then this limit may be the culprit. Have you tried sending the Comment text to a cell? For example (assuming comment in cell A1 and text going to B1):

sheet1.Range("B1").Value = sheet1.Range("A1").Comment.Text
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Getting the FULL text of a Comment

Typically String variables are limited to 255 characters. If your macro is
using the Comment text to feed a String variable, then this limit may be the
culprit. Have you tried sending the Comment text to a cell? For example
(assuming comment in cell A1 and text going to B1):


That's not true. I have strings that are tens of thousands of characters long in the same VBA program.

Phil.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Getting the FULL text of a Comment

Ben:
Typically String variables are limited to 255 characters. If your macro is
using the Comment text to feed a String variable, then this limit may be the
culprit. Have you tried sending the Comment text to a cell? For example
(assuming comment in cell A1 and text going to B1):


Me:
That's not true. I have strings that are tens of thousands of characters long
in the same VBA program.


However, as you suggest, assigning cell[1,1]=cell[1.1].comment.text does appear to work, it gets the full text of the comment. Odd then that assigning it to a String variable chops it off, when the string variable can easily contain the full text.

Phil.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Getting the FULL text of a Comment

Hm. Seems to be working now. Not sure what I was doing wrong. Cell.Comment.Text does appear to be returning the full text.

Phil.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to separate text at all the full stops Michelle Excel Programming 4 January 15th 09 06:21 PM
Show full text? Andy Excel Programming 2 June 6th 08 11:21 AM
How to full justify text ? Betababy New Users to Excel 1 May 12th 07 04:05 AM
Matching CELL text (full word) to full word in string in another DShaw Excel Programming 7 September 12th 06 05:25 PM
see the full comment on a cell george Excel Programming 1 July 14th 03 04:49 PM


All times are GMT +1. The time now is 10:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"