width

  1. E

    Adjusting column and row height to fit one page

    I am trying to make a macro that adjust the row and column height within the printarea so that they fit a certain number of pages before printing to pdf. The purpose of this macro is to generate the "same" pdf file no matter what computer (with differet resolution, print settings and so on) when...
  2. I

    How to resize image with given height and width in excel cells ?

    I have images inside each cell of column C up to 1000 rows. How to resize image with a given height and width in excel cells ? I expect them to be of width = 11.9" and height = 3.9"
  3. G

    Fit picture to screen

    I have an image called Picture1 and I want it to fit the size of any screen. The aspect ratio is > 2:1 so I guess that some of the right hand side of the picture will not be visible. I can get the screen size and also the picture size, but when I try to adjust them, the calculation doesn't...
  4. B

    Setting Userform Label width to fit text

    I need to set the width of the label to auto fit the caption text. So from my research the text is in points and the width is in twips. So I need to get the length of the text string in twips to set the label width. Any ideas?
  5. M

    Need to get width of a range to resize output

    Hello all. I have an inventory workbook that uses data slicers to drill down to specific criteria. The worksheet that displays the inventory has the product models in columns going across the worksheet. The rows going down are the locations where the product is housed. There is a module of code...
  6. S

    Macro Alternate column width adjustment

    Hello and Greetings! I am relatively new to the VB/Macro coding. Can someone advise on how can I adjust width of pivot value - alternate columns using VB macro? The pivot table has 2 data points under 'Values' and I want one of the columns to be of certain fixed width (2 characters) and the...
  7. V

    ChartArea.width sometimes rounded

    Hi all, I have a simple command in my macro which should change a width of my chart to 23cm. But for some charts it works and for some other charts it changes its width to 23.17cm. I have checked the properties of both charts and didn't find any difference. ActiveChart.ChartArea.Width=647 I...
  8. M

    Change marker line width for all series

    I am trying to create a macro that will amend all the markers within my chart to be exactly the same style, shape, size etc. also removing connecting lines. I have gotten most of the way to what I am trying to achieve with the code below: Sub fixchart() Dim i As Long, j As Long i =...
  9. H

    Need to adjust the width of a Data Validation dropdown list

    I have a workbook which contains 6 worksheets and in each of those worksheets there are multiple columns which contain Data Validation Dropdown lists. I want to be able to adjust the width of the dropdown lists when the users click on them so they can see the values to be selected and then when...
  10. T

    Question to keep Formatting to another WB via VBA.

    Okay, I've been searching all morning and I'm having trouble getting this code to work: Sub CommandButton1_Click()MyBook = ActiveWorkbook.Name ' Retrieves the name of original WB. Columns("A:A").AutoFit Columns("B:B").AutoFit Columns("C:C").AutoFit Columns("D:D").AutoFit Range("A5:D500").Select...
  11. R

    Column width of ListObject

    What is the best way to adjust the width of each column in a ListObject to the maximum length of its content? Currently the column width seems to correctly fit the name of the column but the contents just spill outside. I see a ListObject.QueryTable.AdjustColumnWidth but that is supposedly true...
  12. J

    .PlotArea.Width = 25 ...throwing really odd error.

    So I have a block of code that is supposed to make a table, format it a bit, then add a whole bunch of series to it. Everything worked fine until I added the stuff under the " 'Lining up Plot Areas" section. With infoGraph.Chart .ChartType = xlColumnClustered .ChartStyle = 42...
  13. B

    Column width in Header / Footer

    I have Excel 2010, and the header and footer are by default each divided into 3 boxes, each of equal width. Is there any way of changing the width of the boxes? I would like to have the centre box wider than the other two. Many thanks.
  14. D

    Preserving chart size when opening on multiple computers

    Using Excel 2010 on Windows XP: After creating several bar charts on an XP machine, the original width of the charts of 6.5" shrinks by about 1" when opening the same file on BOTH an XP machine and a windows 7 machine. This is problematic for multiple reasons, namely that the axis labels are...
  15. K

    How can I vary the thickness of each bar in my chart?

    I work for an organisation that awards grants to research projects. I am using Excel 2007 and I want to create a timeline (as an Excel chart) to show the duration of each project, and the size of the grant. Using the start date and duration for each project, I have managed to create a...
  16. I

    Setting Table Width for Embedding in Word

    I am embedding multiple excel tables into Microsoft Word through the Paste Special function. The tables are looking great. Is there a way to set the width of the tables in excel? I would like them to fit the parameters of my word document. I can change the width of columns individually. But...
  17. D

    List Width - Data Validation / Combobox

    I've searched high and low (google isn't my friend this time) and I can't find an answer about these particular "issues". First Issue: Data Validation - List Width I understand that a data validation's list width is determined by the column's width. It was working before, however, after...
  18. S

    Text width in pixels

    Hello, I need to get width of text in pixels. I need it for two reasons: 1) to be able to use Data Validation and UDF in a way that user won’t be able to type text which does not fit in the cell 2) to be able to do the same as in (1) but with ~ 50 000 string queries at a time (I will read data...

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