
03-18-2011, 02:45 PM
|
|
Centurion
|
|
Join Date: Mar 2007
Posts: 115
|
|
try this
Code:
Sub ParseData()
Dim LastRow As Long
Dim lRow As Long
Dim sData As Variant
LastRow = FindLastRow(Worksheets("sheet1"), "A")
For lRow = 1 To LastRow
sData = Split(Cells(lRow, "A"), "note:")
MsgBox sData(0)
MsgBox sData(1)
Next lRow
End Sub
Public Function FindLastRow(WS As Worksheet, ColumnLetter As String)
FindLastRow = WS.Range(ColumnLetter & "65536").End(xlUp).Row
End Function
I am echoing the result out, you can do whatever with it
|
|