Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don,
Got it ! Sub Delete_Excess_Columns() Dim a, z As Integer a = Application.Match(1, Rows(1), 0) z = Application.Match(2, Rows(1), 1) If z - a 1 Then Columns(a + 1).Resize(, z - (a + 1)).Delete End Sub Is the reason you don't have to type "End If" because ELSE wasn't used ? Is As Integer the right data type and is it really necessary to specify it ? Now I know how to use the Range.Resize property. Thanks a lot ! - Ronald K. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting columns | Excel Discussion (Misc queries) | |||
Adding Columns, Then deleting old columns | Excel Discussion (Misc queries) | |||
Combining Text from 2 Columns into 1 then Deleting the 2 Columns | Excel Worksheet Functions | |||
Deleting Columns to the right - 1 | Excel Programming | |||
Deleting Columns | Excel Programming |