Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
He everyone.
After entering text in columns B,C,E, I want to set the width of column D so that the sum of columns B:E = 4 inches (for printing purposes). Right now I have this code: Columns("B:C").EntireColumn.AutoFit Columns("E").EntireColumn.AutoFit TempCW = ActiveWindow.PointsToScreenPixelsX(Columns("B:C"). Width + Columns("E:E").Width) 'Columns("D").ColumnWidth = ActiveWindow.PointsToScreenPixelsX(Application.Inc hesToPoints(4) - Round(TempCW)) Right now, column D ends up way too wide. I think I might be getting mixed up because there are inches, pixels, and .ColumnWidth (which doesn't equal anything else). NOTE: I remember seeing something in the help section about resolution. This macro will be run on different computers with different resolutions. One last thing. The firewall at work won't run Java, so I am submitting this during my lunch hour at home. Could you e-mail any responses to me at work: . Thanks, Brad E. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting column width to specific row in Excel doc ??? Thanks! | Excel Discussion (Misc queries) | |||
setting column width | Excel Discussion (Misc queries) | |||
Setting column width in a table | Excel Discussion (Misc queries) | |||
Setting column width for blank columns | Excel Discussion (Misc queries) | |||
Setting Column Width on Imported Data | Excel Discussion (Misc queries) |