+ Reply to Thread
Results 1 to 7 of 7

Make a Textbox ready-only but able to scroll down text

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Make a Textbox ready-only but able to scroll down text

    I hope somebody can help me in this:

    I have a TextBox control in one of my sheets with the vertical scroll bar working fine. The problem is that the text inside the textbox is editable. I don't want to be editable, just read only. The text was copied and pasted from a MS Word file. How I can make this work? I was thinking to convert the word file into another format (PDF of jpg) and then paste it to the textbox. The document is 6 pages long. Please let me know what I can do.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Make a Textbox ready-only but able to scroll down text

    Have you set the Enabled property of the TextBox to False?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    10-18-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Make a Textbox ready-only but able to scroll down text

    Thank you for responding.Yes, but by doing that the scroll bar won't work and I won't be able to read the whole text. Beside that, the text becomes grayed. Any other Idea?

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Make a Textbox ready-only but able to scroll down text

    I'm not familiar with ActiveX textboxes, but in a userform textbox, this code will prevent user entry into the box.
    Please Login or Register  to view this content.
    If your TextBox has a KeyPress event, it should work for you.

  5. #5
    Registered User
    Join Date
    10-18-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Make a Textbox ready-only but able to scroll down text

    I am using a activeXcontrol text box because, in excel 2007,it is not available in the form control section. I can not find it. How I can make you code works?

  6. #6
    Registered User
    Join Date
    10-07-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Make a Textbox ready-only but able to scroll down text

    out of curiosity, does Data>Validation (using a dropdown list, with the "ignore blanks" unchecked) not work for you?
    --Apelcius--
    Learn. Share. Rinse, Repeat.

  7. #7
    Registered User
    Join Date
    10-18-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Make a Textbox ready-only but able to scroll down text

    But how I convert a 6 pages MS Word Doc into a Data validation list? So each line in the doc will be 1 item in the list? or the whole document one line item. However the text won fit in the cell, even if I merge cells. The scrollbar won't apear.

+ 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