Case Sensetive =False

Status
Not open for further replies.

fari1

Active Member
Joined
May 29, 2011
Messages
362
Code:
Sub newcode2()
startrow = 2
Sheets("statement").Select
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Sheets("sheet1").Select
sheet1rows = Cells(Rows.Count, "A").End(xlUp).Row
For Y = 1 To sheet1rows
   Sheets("sheet1").Select
   searchvalue = "*" & Cells(Y, "A").Value & "*"
   Sheets("statement").Select
   For X = lastrow To startrow Step -1
      If Cells(X, "A").Value Like searchvalue Then Cells(X, "A").EntireRow.Delete
   Next
Next
End Sub

hi, my above code is case sensetive, while i dont want it to be, any help plz
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
e.g if the search value is like this, "Case" then it wont delete those text which "case"
i want it to delete all the text irrespective of going into upper and lower case stuff
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

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