+ Reply to Thread
Results 1 to 3 of 3

Auto ajusting cells in a workbook

  1. #1
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Lightbulb Auto ajusting cells in a workbook

    Moderators - I wasn't sure where/how to post this so if it is in the wrong forum, please move it to the correct one, thank you.

    Hopefully this is something that will help others out

    I was trying to find a way to "auto adjust" cells, in a workbook, based on how much text was in the cell. All of the help I could find about this was to go through options/settings for a sheet. I needed it to work for the entire workbook as I have code that creates a new sheet and then emailed that sheet. This was done with the click of a button so there wasn't a way for me to go to the new sheet and change the settings. I thought all was lost until I FINALLY, after an exhaustive search, came across this code
    Please Login or Register  to view this content.
    Place it in the workbook section of VBA and it will adjust the cell length according to the amount of text that is in the cell. Keep in mind, the adjustment only happens after hitting enter, tab or clicking in another cell.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Auto ajusting cells in a workbook

    Thanks for this

    I am going to move it to the Tips forum
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Auto ajusting cells in a workbook

    You're welcome, and thank you for moving it to the correct forum as I didn't scroll down far enough to see the "Tips" forum...oops.

+ 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. macro to bring up stored workbook, auto save to a new folder, then auto fill
    By Rick23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2014, 06:58 PM
  2. [SOLVED] Want auto-gen number in template workbook to stop working when saved to normal workbook
    By tjamestx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2014, 02:56 PM
  3. [SOLVED] Need excel to auto populate specified cells into another workbook
    By esdynamite in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-24-2013, 11:06 AM
  4. Auto-Updating Date for Linked Workbook Cells
    By rwh03001 in forum Excel General
    Replies: 0
    Last Post: 09-02-2011, 11:44 AM
  5. protection of a workbook + unprotecting specific cells + calculation auto
    By choubix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2008, 07:49 AM
  6. [SOLVED] Ajusting a ChartArea's size
    By happyjanezj in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-27-2005, 12:35 PM
  7. [SOLVED] Auto Excel workbook close: save= false during an auto subroutine
    By tomwashere2 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-16-2005, 02:05 AM

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