Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Macro to delete row if row blank but cells do have formulas in the

HI, I have limited VBA knowledge. I have a very large worksheet where I need
a macro to delete rows that are blank. The cells look blank but have
formulas in them. Does anyone have a macro to do this. Also, I have three
worksheets in this file and the one I'm working with is called
"Implementation".

Thanks,
Cathy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro to delete row if row blank but cells do have formulas in the

Hi Cathy

You must loop through them and test for ""

See
http://www.rondebruin.nl/delete.htm

Use this line in the macro

ElseIf .Cells(Lrow, "A").Value = "" Then .Rows(Lrow).Delete
'This will delete each row if the cell is empty or have a formula that evaluates to ""


Or use EasyFilter that have a option to do this
http://www.rondebruin.nl/easyfilter.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Cathy" wrote in message ...
HI, I have limited VBA knowledge. I have a very large worksheet where I need
a macro to delete rows that are blank. The cells look blank but have
formulas in them. Does anyone have a macro to do this. Also, I have three
worksheets in this file and the one I'm working with is called
"Implementation".

Thanks,
Cathy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Macro to delete row if row blank but cells do have formulas in

Thanks Ron. It worked great!!

Cathy

"Ron de Bruin" wrote:

Hi Cathy

You must loop through them and test for ""

See
http://www.rondebruin.nl/delete.htm

Use this line in the macro

ElseIf .Cells(Lrow, "A").Value = "" Then .Rows(Lrow).Delete
'This will delete each row if the cell is empty or have a formula that evaluates to ""


Or use EasyFilter that have a option to do this
http://www.rondebruin.nl/easyfilter.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Cathy" wrote in message ...
HI, I have limited VBA knowledge. I have a very large worksheet where I need
a macro to delete rows that are blank. The cells look blank but have
formulas in them. Does anyone have a macro to do this. Also, I have three
worksheets in this file and the one I'm working with is called
"Implementation".

Thanks,
Cathy




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I Delete blank cells in a row Andy in Edinburgh[_2_] Excel Discussion (Misc queries) 3 September 5th 08 05:46 PM
Macro to Delete blank cells GarToms Excel Worksheet Functions 1 January 26th 06 07:39 PM
Macro to delete all blank cells Brian Excel Programming 2 December 15th 05 12:26 AM
Macro to delete blank rows Barb Reinhardt Excel Programming 1 September 15th 05 10:23 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM


All times are GMT +1. The time now is 07:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"