ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   text comparison (https://www.excelbanter.com/excel-programming/297244-text-comparison.html)

skippy

text comparison
 
--- now my problem is that I want code to always check the value of tex
in the field C2 and then go on to the next value D2 , E2 etc ~ Do
need to set another loop or somehow select the range ?



Range (“B2”).Select

Do while IsEmpty(ActiveCell.offset(0,1)) = False

If Mid(C2,23,15) = “Calendar Spread” then



ActiveCell.Rows(“2:2”).EntireRow.Select

Selection.Delete

ActiveCell.Offset(0,6).Select



Else



ActiveCell.Offset(1,0).Select



End if



Loo

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 12:36 PM.

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