Consulting

Results 1 to 2 of 2

Thread: Text in a cell, and row AutoFit

  1. #1
    VBAX Regular
    Joined
    Jan 2006
    Posts
    30
    Location

    Text in a cell, and row AutoFit

    Hi Folks,

    I am using a textbox on a form for the user to key in text. It is a multiline textbox, so with ctr-enter one can add a line break.

    The textbox contents is then put into a cell, on a sheet I use to print out an overview of all the data. Formatting the sheet for printing works, except for one thing:

    If I AutoFit all rows after setting fonts & sizes, the multiline text is shown as a single-line height row. So, ever second and so one line of input is not shown.

    Can't figure out how to make the row adjust it's height to show ALL lines....

    Any suggestions?

    edit: in concern some merged cells on the same row; after un-merging, autofit works! But why not with merged cells?

    edit II: I used the search function before asking this question. But, after looking again I found a piece op code here 0n this forum that more or less indicates that merged cells won't autofit just like single cells. Is there a deeper meaning here? Or is it a bug?

    Thymen
    Last edited by Thymen; 05-09-2006 at 02:35 AM.

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Not necesisarily a bug but merged cells can cause problems like this. Its better to use "center across selection" to put text in the middle of several cells on a row.

    right click the selection and under the alignment tab -horizontal alignment select "center across selection"
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

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