+ Reply to Thread
Results 1 to 5 of 5

VBA Workaround for 255 character limit in cell?

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    VBA Workaround for 255 character limit in cell?

    Hello,

    I am using VBA to populate a column within my worksheet with the bolded formula below. This returned value in some instances results in "####" displaying in the cell due to total characters in the cell exceeding 255; the cell displays correctly in all other instances when the character count is 255 or less. My code is as follows:


    Please Login or Register  to view this content.
    I have referenced both
    HTML Code: 
    and
    HTML Code: 
    but I cannot figure out how to apply this to what I am doing.

    Any help will be greatly appreciated. Thanks!

    Bjordion
    Last edited by Bjordion; 11-13-2013 at 04:04 PM.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA Workaround for 255 character limit in cell?

    There is not a 255 character limitation here. Perhaps the returned value is too wide for the cell.

  3. #3
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    Re: VBA Workaround for 255 character limit in cell?

    I agree, this is not an issue of character limitation in the cell itself. I believe the issue is occurring when the value that is looked up is greater than 255 characters when the formula is placed into the cell by VBA. I can type out that exact same formula directly into Excel and receive the desired text every time.

    Any thoughts?

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA Workaround for 255 character limit in cell?

    Are the cells becoming formatted as Text? If yes, change the format to General

  5. #5
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    Re: VBA Workaround for 255 character limit in cell?

    Ughhhhhhhh... somehow the custom formatting from an adjacent column was being applied to my problem column. Changing the formatting to General remedies the issue completely. Hahaha, wow. Ocham's Razor never ceases to amaze me. Many thanks Iz.

+ 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. VBA formulaarray 255 character limit workaround
    By moses67 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2013, 06:41 AM
  2. [SOLVED] Workaround to the 32767 character limit for strings in VBA?
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-05-2013, 06:18 AM
  3. Display Active Character Count + Limit Character Per Cell
    By euronail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2011, 04:59 AM
  4. Workaround needed for 255 character find limit
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2009, 04:10 PM
  5. busted workaround for 255 character limit in cells
    By mklapp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2005, 05:05 AM

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