+ Reply to Thread
Results 1 to 5 of 5

Sub UpdateComment - is the length restrictions

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Sub UpdateComment - is the length restrictions

    Hi All ,

    I have attached a file here , i previously posted get ideas to update comment via Userform

    Andy Pope has kindly suggested a great ideas.

    http://www.excelforum.com/excel-prog...n-comment.html

    I have added the function and it works great .

    Until lately users wanted to add comment as long as a paragraph , and it did not work any more .
    So was curious if anyone knows its its a length restrictions , and how its possible to add longer comment .

    I have tried text as length below @ 143 char (it did not work)
    One Two Three Four Five Six Seven Eight Nine Ten Evelen Twelve Thirteen Fourteen Fifteen Sixteen Seventeen Eighteen Nineteen Twenty TwentyOne

    I get the results printed until Sixteen. @ 97 Character.

    Any idea i can update longer comment ?

    Any suggestion is very much appreciated.
    Thanks very much in advance to all

    Cheers ,
    waihar
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Sub UpdateComment - is the length restrictions

    Hi there,
    did not look deeper, but try to change this bit of Your code:
    Please Login or Register  to view this content.
    to this:
    Please Login or Register  to view this content.
    'placed in Private Sub UpdateComment(InCell As Range, Text As String)'

    Tested once and works
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Sub UpdateComment - is the length restrictions

    thanks , it works great.

    Just one more questions , do you happens to know how can the comment box can auto expend to display the full comment .
    when cursor move to that place ?
    Currently i have to manually expend the message to see the full ones when user enter it very long.

    Cheers , waihar

  4. #4
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Sub UpdateComment - is the length restrictions

    Its ok , i got the answer to my above question of auto expand comment box in below link

    http://www.excelforum.com/excel-prog...too-small.html

    But this above expand vertically , and quite difficult to read ,
    any method to have it expand horizontally too , any suggestion ??

    thanks in advance.
    cheers ,
    waihar
    Last edited by waihar; 05-28-2014 at 11:16 PM. Reason: need more info

  5. #5
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Sub UpdateComment - is the length restrictions

    Hi there,
    Without searching, I know only 3methods how to work with comment size:
    1) Yours 'Autosize', which You already tested
    Please Login or Register  to view this content.
    2) Increment size every time with multiply actual size:
    Please Login or Register  to view this content.
    3) Increment with static value:
    Please Login or Register  to view this content.
    Hope it helps

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Shorten string length if exceeds 31 characters (max sheet name length)
    By r2fro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2014, 05:57 AM
  2. Repeat Calculation At Length & Calculate Lowest Value At Length
    By sanju2323 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2013, 09:19 AM
  3. [SOLVED] Finding a formula that will consider length of cell and length of words
    By Mariah B in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2013, 05:39 PM
  4. [SOLVED] Cell length VBA to add trailing characters until a specified length is reached
    By bkeller83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 10:43 PM
  5. Sorting Items by Length for a target length list.
    By Joe Bob Crain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2006, 12:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1