Results 1 to 10 of 15

Thread: Align TextBox Within A Range

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Member
    Join Date
    May 2020
    Posts
    66
    Rep Power
    5
    Thank you for the correction in the macro! Changing from .RowHeight to .Height solved my Problem number (2)
    2. Rows are not adjusted exactly as the height of textbox
    But Problem No 1 is still there, i.e, every time a cell is selected, the macro is running, impacting my pc performance. Also, this macro disables my UNDO option everytime I select any cell.



    I'm not sure what you're trying to achieve; if the textbox must always be big enough to fit some text or not. Give us a clue about the order you want things to happen in.
    Sorry if I have not explained properly. Let me explain again...

    I want a textbox inside excel sheet with following conditions...
    (1) TextBox must be always lies between the rows(356:375). (Solved above, works on 100% zoom level)
    (2) TextBox width should be fixed (static) (No issue)
    (3) TextBox height should be dynamic, that is, the height of textbox should increase or decrase according to the enteries so that all the text must be visible in the textbox. (The bottom text line is not visible in the textbox after applying the above macro)
    (5) The target should be the textbox or range B356:Z375 (Whichever be possible) so that the code does not run everytime a cell is selected.

    (Need not to mention, code should not impact the basic features like undo and redo)
    Even I'm ready to use merged cell range, too, if they satisfy these needs. But I think that would be more difficult for VBA.

    All these requirements may be satisfied easily if I use a single row, as I think. But the problem with a single row is -
    If the text entries are very large, say in thousands words, the row height will be extremely large. Excel always show a row either from top or bottom, and hence, it'll be very difficult to read the 'Stories'.

    Thank you for listening these too much stuff with too patience!
    Last edited by DocAElstein; 10-11-2020 at 06:27 PM. Reason: changed -------------- to [HR][/HR]

Similar Threads

  1. Align Data In Groups Of Columns
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 0
    Last Post: 05-25-2015, 03:07 AM
  2. Replies: 4
    Last Post: 11-15-2013, 03:42 PM
  3. Replies: 9
    Last Post: 08-08-2013, 07:13 PM
  4. Align Shapes (Charts) On ActiveWorksheet
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 1
    Last Post: 05-14-2012, 03:25 AM
  5. Replies: 2
    Last Post: 02-29-2012, 08:24 PM

Posting Permissions

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