Delete Rows Between two Columns

fahadmalik09

New Member
Joined
Jun 1, 2014
Messages
26
Hey Team,

Experience
V1
V2
Mobile No:
Experience
V3
v4
v5
Mobile No:
Experience
V6
Mobile No:
Experience
V7
v8
v9
Mobile No:

<tbody>
</tbody>

I want to delete Values between "Experience" to "Mobile:", ie v1, v2 , v3, v4 .......
Problem is , some has single row below "Experience", some has more than one row below "Experience"

How to delete :confused:
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
What is the error message & on what line?
 
Upvote 0
Turn you filter on, select the blank rows unselect "blank" rows. Then go "File" > "Inspect Workbook" (check for issues), Inspect the document, select the option of "hidden rows" and the hidden rows you filtered out will be automatically deleted.
 
Upvote 0
Its Not Working, after running macro, it Just deleted "Experience" word from sheet.

I find this code too,

Option Explicit

Sub delete_rows()

Application.ScreenUpdating = False

With ActiveSheet

.AutoFilterMode = False

.Range("A1:A" & .Cells(Rows.Count, "A").End(xlUp).Row).AutoFilter _
field:=1, Criteria1:="<>Experience", Operator:=xlAnd, Criteria2:="<>Mobile*"

.Range("A1:A" & .Cells(Rows.Count, "A").End(xlUp).Row).Offset(1, 0).EntireRow.Delete

.AutoFilterMode = False

End With

Application.ScreenUpdating = True

End SubIt deleted all entries including name ,Age....just "Experience" and "Mobile" row remains on the sheet.


Are you saying it's now working?
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top