Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm using JLGWhiz's solution in posting "Deleting Column Based On Header" to delete columns other than those correctly titled. - Below - It works Fine but only when run several times or repeated. Can someone help me enhance to automatically loop until either desired # of columns with data or until Column Headers indicated below all that left ? Dim C As Range lc = Cells(1, Columns.Count).End(xlToLeft).Column Set myRng = Range("A1", Cells(1, lc)) For Each C In myRng If C < "Doc. Date" And C < "DocumentN" And C < "Type" And C < "Reference" And C < "LC amnt" Then C.EntireColumn.Delete End If Next Many Thanks / Happy Holidays Steven all left |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In Excel My Columns are going from right to left, how can I fix i. | Excel Discussion (Misc queries) | |||
If < equal to named list require user to fill out desired columns? | Excel Programming | |||
Count number of times two columns have desired values | Excel Discussion (Misc queries) | |||
My columns run from right to left instead of left to right. Help? | Setting up and Configuration of Excel | |||
filtering columns-left nav | Charts and Charting in Excel |