autofit

  1. N

    Autofit all table

    Hi, I am working on a macro file which copies number of tables from the file to outlook email. Then it changes the alignment of all the tables to center. I was wondering if there is a way or code to autofit all this tables? Thanks in advance for your help. Really appreciate any help I can get...
  2. S

    VBA Autofit merged cell

    Hi, I am relatively new to VBA and I have found a Macro which autofits merged cells to ensure they are all visible (by adjusting the row height). the only issue is, the VBA I have leaves a huge gap above the text that is autofitted. I can't seem to identify the issue. Any assistance, or any...
  3. L

    Formatting Multiple Sheets

    Hi Again VBA Experts, I am trying to select all sheets in my workbook after and inclusive of Sheets("ps"), then format each sheet. I have the following code. It selects all sheets, all sheets widen to 100, but only the first sheet (ps) is then reformatted to Autofit. Can you please point out...
  4. W

    How to autosize default Excel 2010 workbook on opening

    I am using Excel 2010 and have created a new default workbook, Book.xlts, and saved it in the XLSTART folder. A Ctrl-N will create a new workbook in the open Excel window based on this default workbook, but it retains its original size. I would like this window to open as the standard...
  5. R

    Auto-size column error

    Hey all, So the title of my post is slightly misleading...Some time ago I created two unique programs both serving the same purpose, to take data, organize it, then reproduce it on a PDF format. This has been working without any type of hiccup until this last week when both programs (that's...
  6. V

    VBA Autofit Merged Cells - Too high!

    Hi everyone, Apologies if this is somewhere buried in the forum, but I need to make some merged cells autofit. I found the code below, which works.. but the cells then become too high! The cells come out at about double the height of what I need them to be. Can you help? Thanks! Public Sub...
  7. G

    Autofit and Autofilter in Excel VBA - Revision Needed on my code?

    Hello, I am learning VBA and have a large code that formats an Excel spreadsheet. The code works, but I just want to see if there is a better way to write the code of Autofit and Autofilter than what I have below for the sake of learning. I ask, too, b/c I hear some people say to not use Select...
  8. P

    Auto Size Cells across two sheets

    I have two sheets that have data entered. Sheet 2 gets text from a particular cell on sheet 1. When I enter data on sheet 1 the cell auto fits to show the text. This does not automatically happen on the corresponding cell on sheet 2. Is there a way to have the cells on sheet 2 automatically...
  9. D

    MAC Workbook Autofit REMOVES my DOCK and hides top menu bar - How can I STOP these from happening?

    This is my first post here. I'm using a MAC with OSX El Capitan and Office 2011. I believe the newest update of Office or the new OSX upgrade made these changes to the Excel program. I've looked at all the possible preferences to remedy the problem but can't seem to find any solutions. 1 ) When...
  10. N

    MS Excel table auto-adjusting to Outlook message window

    Hi All, I would appreciate your help on a conundrum I cannot find an answer to. I assume this is actually so simple that I will be ashamed of having asked it afterwards :) I have two tables in MS Excel on different spreadsheets (I am currently using 365 version but this is true for each...
  11. R

    Help with fixing my code!

    Hi, I am in deep need of your help guys. I need help with fixing a code that I got online to suit my needs. I would like it to paste pictures onto the excel file I made. I have two separate codes one for bring up the pictures using a specified path and one for auto fitting the file that i...
  12. G

    I want a macro that can let the user autofit with a shortcut when a cell is like ######

    Hi! I have been looking and asking for solutions everywhere to find how to let the user autofit the columns when the figures are shown with ######## The best I could find was something like the code below but it doesn't work and on the other hand I want to make the macro work ONLY for the cells...
  13. J

    Excel to Word AutofitContent

    Hello, I have the below code that will copy a table in Excel and then paste it into Word. However I cannot get it to autofitcontents to the page: Sheet2.Range("F6:L" & (46 - Application.WorksheetFunction.CountBlank(Sheet2.Range("F6:F51"))) + 5).Copy...
  14. 9tanstaafl9

    Mystery Autofit - widths automatically adjusting

    I'm pretty sure that I have seen a workbook before, where the column widths adjusted themselves automatically whenever the value in a column got large enough that it required an adjustment to avoid seeing #######. And when I say automatically, I don't mean that the column was adjusted during...
  15. klynshoe

    Automatic row autofit?

    I have a formula for an entire column that includes char(10) to insert a break, but Excel does not autofit the row when it become populated by the formula. Is there a setting I can change so that rows are automatically autofit? USING EXCEL 2010
  16. O

    How check AutoFit

    I like to find out if a cell has a prefixed height or has the .AutoFit turned on. debug.print ActiveCell.AutoFit doesn't work!
  17. M

    Application-defined or object-defined error...

    Hi, I'm bored so I felt like making a pie chart of my cell phone data usage. I made a spreadsheet (table below) that has a column that labels each application and the corresponding data that it used. My macro then creates a second table of only the applications that used 2% or more of the total...
  18. C

    autofit column width with a minimum value

    Hi, I have the following code in a macro that autofits a column's width... Columns("C:C").EntireColumn.AutoFit How can I adapt this so it autofits but won't reduce the column width below a value of 20..? Rgds, Chris
  19. M

    VBA Cell Auto Fit

    Is there a way to auto fit one cell. For instance ive got my column width for column "A" as 15.57 but i want cell "A12" to have a width of 32. I dont have any text in "B12" but i do in column C. but the text for column "C" has an alignment to the right with a width of 70. So i have plent of...
  20. P

    Autofit does not expand row height enough to display all text in cell

    I have 22 identical worksheets for a financial report used by our businesses where Col A has categories, Cols B-J are used for numbers, and Col K is for comments. Col K is configured to Wrap text (also, for 'TEXT ALIGNMENT', 'Left (Indent)' and 'Bottom' are selected). To print the report...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top