Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I wrote this simple macro to just go through column B and delete rows that
don't have an email in them. It won't even compile. It tells me error "Next without for". Sub FindEmail() 'try to separate email addresses and add a comma at the end of them FinalRow = Cells(65536, 2).End(xlUp).Row For i = 1 To FinalRow Cells(i, 2).Select If Isblank.Cells(i, 2) Then Range(i, 2).Select.Delete Else If Cells(i, 2).Value < "@" Then Range(i, 2).Select.Delete End If Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro does not work in Office 2007... suggestions: | Excel Discussion (Misc queries) | |||
Simple links in Excel 2007 | Excel Worksheet Functions | |||
Excel 2003 - Simple IF() Formula Will Not Work For Me | Excel Worksheet Functions | |||
Why won't this simple VBA script work in excel 2002? | Excel Discussion (Misc queries) | |||
Problem with Excel: Simple multiplying calculations don't work. | Excel Discussion (Misc queries) |