Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Deleting rows containing active cell based on condition


Deleting rows containing active cell based on condition

Author
Message
sunilmulay
sunilmulay
Forum God
Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)Forum God (646 reputation)

Group: Forum Members
Posts: 2, Visits: 12
I'm a VBA newbie. I want to set a macro to delete rows. There are two conditions - see example below. If the user selects the last line (condition = if there is data in column D in the row containing the active cell), then the macro should delete the row as well as the 5 following rows. If the user selects the first line (condition=if there is no data in column D), then only that row should be deleted.

any ideas?

thanks! Sunil

 CDE
1WBS Level 2 Item
 1.1WBS Level 3 Item

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search