ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   removing a row if it is non numeric (https://www.excelbanter.com/excel-programming/284035-removing-row-if-non-numeric.html)

andycharger[_2_]

removing a row if it is non numeric
 

Thanks for the help on blank cells. but I have tried it and I also nee
to get rid of rows that have text in column K.

How can I delete rows that have Text in Column K using the macros an
VB?

Basically, I just want to keep rows that have NUMERIC cells in colum
K.


Any help would be appreciated.

Thanks

And

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements

Chip Pearson

removing a row if it is non numeric
 
Andy,

Try the following:

ActiveSheet.Columns("K").SpecialCells(xlCellTypeCo nstants,
xlTextValues).Delete


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"andycharger" wrote in
message ...

Thanks for the help on blank cells. but I have tried it and I

also need
to get rid of rows that have text in column K.

How can I delete rows that have Text in Column K using the

macros and
VB?

Basically, I just want to keep rows that have NUMERIC cells in

column
K.


Any help would be appreciated.

Thanks

Andy


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide

to creating financial statements




All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com