Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm sorry, Miguel, but I misphrased it. I want to continue with the
next iteration. Not break out complelty. If I change the 'next' to a 'next for' i get the same error. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am not sure if you can jump to the next iteration on VBA, maybe you can ask
the question on the excel.programming newsgroup. Sorry for not being able to help more, Miguel. "Samuel" wrote: I'm sorry, Miguel, but I misphrased it. I want to continue with the next iteration. Not break out complelty. If I change the 'next' to a 'next for' i get the same error. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
you were great! thank you!
|
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Samuel,
Try something like: '============= Public Sub Tester() Dim sStr As String Dim i As Long Dim LastRow As Long LastRow = Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To LastRow sStr = ActiveSheet.Cells(i, "A").Value If Left(sStr, 3) = "USA" Then 'Do something, e.g.: Cells(i, "A").Interior.ColorIndex = 6 Else 'Do something else End If Next i End Sub '<<============= --- Regards, Norman "Samuel" wrote in message oups.com... I'm sorry, Miguel, but I misphrased it. I want to continue with the next iteration. Not break out complelty. If I change the 'next' to a 'next for' i get the same error. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
unhide menu bar in excel - just disappeared | Setting up and Configuration of Excel | |||
Excel User Conference - Last days for regular registration - Mar 15th | Excel Discussion (Misc queries) | |||
Excel User Conference - Last days for regular registration - Mar 15th | Excel Worksheet Functions | |||
opening csv file in regular excel format | Excel Discussion (Misc queries) | |||
Opening two separate instances of Excel | Excel Discussion (Misc queries) |