Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that combines multiple sheets into one. I want to add to the
macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ramon,
Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That only deletes the blank rows..Its possible to have text in the field as
well.. A column can look like 03/17/06 03/18/06 Weekly MTD 03/08/06 03/09/06 I just want to keep the rows with dates... Thanks for the help "Norman Jones" wrote: Hi Ramon, Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look in the Excel help for SpecialCells
You will see that you can use ..SpecialCells(xlCellTypeConstants, xlTextValues) -- Regards Ron de Bruin http://www.rondebruin.nl "THE_RAMONES" wrote in message ... That only deletes the blank rows..Its possible to have text in the field as well.. A column can look like 03/17/06 03/18/06 Weekly MTD 03/08/06 03/09/06 I just want to keep the rows with dates... Thanks for the help "Norman Jones" wrote: Hi Ramon, Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Norman
See this page for a limit test finally found a way to test it http://www.rondebruin.nl/specialcells.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Norman Jones" wrote in message ... Hi Ramon, Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the help Norman and Ron, I got it to work..
"Ron de Bruin" wrote: Hi Norman See this page for a limit test finally found a way to test it http://www.rondebruin.nl/specialcells.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Norman Jones" wrote in message ... Hi Ramon, Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ron,
Very nice, Ron! And very useful too! --- Regards, Norman "Ron de Bruin" wrote in message ... Hi Norman See this page for a limit test finally found a way to test it http://www.rondebruin.nl/specialcells.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Norman Jones" wrote in message ... Hi Ramon, Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
let me re-phase what I was trying to say.. thanks guys,, you guys got it to
work... :) Thanks again "Norman Jones" wrote: Hi Ron, Very nice, Ron! And very useful too! --- Regards, Norman "Ron de Bruin" wrote in message ... Hi Norman See this page for a limit test finally found a way to test it http://www.rondebruin.nl/specialcells.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Norman Jones" wrote in message ... Hi Ramon, Try: '============= Public Sub Tester() On Error Resume Next Columns(1).SpecialCells(xlBlanks).EntireRow.Delete On Error GoTo 0 End Sub '<<============= --- Regards, Norman "THE_RAMONES" wrote in message ... I have a macro that combines multiple sheets into one. I want to add to the macro that once the master file is compiled, delete any row in column "A" that doesn't have date Basically if A1 = 03/28/06 keep row if A1 = null,text,etc delete row. Thanks in advanced... Ramon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I delete a row automatically after each date | Excel Discussion (Misc queries) | |||
Command Line. How to tell to XL : If the xls file exist : Open it, if it does not exist : Create it. | Excel Programming | |||
delete sheet if it exist | Excel Programming | |||
Delete Entire Row - Date | Excel Programming | |||
How2 Delete "Not exist" charts/sheets? | Excel Programming |