Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I have a some columns from which the columnwidth should be changed. I have written a piece of code to do that, but I get an error when using it. I found out that iLastColumn3 gives the outcome "20" instead of "T". How should I change the code to get it working? Thanks in advance! Code: -------------------- iLastRow3 = Cells(Rows.Count, "B").End(xlUp).Row iLastColumn3 = Cells(iLastRow3, Columns.Count).End(xlToLeft).Column Columns("B:B").ColumnWidth = 10 Columns("C", iLastColumn3).ColumnWidth = 9.14 -------------------- -- leonidas ------------------------------------------------------------------------ leonidas's Profile: http://www.excelforum.com/member.php...o&userid=35375 View this thread: http://www.excelforum.com/showthread...hreadid=566638 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Set the text align property of each individual column on UserForm1.ListBox1.ColumnCount = 5 | Excel Programming | |||
Columncount | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |