+ Reply to Thread
Results 1 to 4 of 4

Best Way to Display a Large Amount of Data in a Single Cell

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    47

    Best Way to Display a Large Amount of Data in a Single Cell

    I have a spreadsheet which is auto-generated based on a long VBA script. In Column A I have some instances where there exists a large amount of text inside the cell. I do not want to resize the cell. What is the best way to view this data? (It would need to be automatically done with each iteration)

    Here's what I've tried so far:

    1) Data Validation Input Message.
    Problem: Character limit is far too short

    2) Making a Worksheet_SelectionChange code changein the appropriate sheet so that when you click on cells in Column A, a message box appears displaying the content.
    Problem: This is perfect except I don't know how to turn this functionality off while I run a macro in a separate module (I know about the Application.EnableEvents = False/True commands, but my macro can't be put in between these commands as it's not located in the sheet code). Because I can't turn it off, the SelectionChange errors out with an Out of Memory error whenever my VBA script is run.

    3) Inserting comments that contain the contents of the cell.
    I haven't tried this yet, but I'm worried that the tiny comment boxes won't do a good job at displaying lines upon lines of data.

    Any suggestions? I would love a way to make #2 work but would gladly accept any alternative that works.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Best Way to Display a Large Amount of Data in a Single Cell

    ... but my macro can't be put in between these commands as it's not located in the sheet code
    You can turn events on and off with code in any module.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Best Way to Display a Large Amount of Data in a Single Cell

    Shg,

    Just tried that. Still running out of memory. For reference, here is the command I'm using for the Worksheet_SelectionChange code:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Best Way to Display a Large Amount of Data in a Single Cell

    Nevermind! I moved the Application.EnableEvents = False up a few lines to the very top of the macro and it works. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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