Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Loop Till the end of used Cell
Dear all,
I have following code which loop till the end of a column. But it is rather slow. I want to change the code that only loop the column till the last row that have data entered. I do not want it to loop to Range("A1").End(xlDown). How can I do that? For Each cell In ActiveWorkbook.Worksheets("sheet1").Range("A1", Range("A1").End(xlDown)) If cell.Value = TextBox1.Text Then cell.Offset(0, 1).Select Selection.Value = "Yes" flag = True Count = Count + 1 TextBox1.Text = "" Exit Sub End If Next cell |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Loop till value changes | Excel Discussion (Misc queries) | |||
Copy cell contents in empty rows below it till any unempty row com | Excel Discussion (Misc queries) | |||
count rows till cell is blank | Excel Programming | |||
delete dulipate rows by checking each and every cell in a row till end. | Excel Programming | |||
macro to loop till end of page | Excel Programming |