-------- -----
Inter Op eration Ctl - 1102
<-Sour ce--> Transaction Desc ription Trxn
Co Acc ount Extension Co de Typ Doc.Ref. Date Session Perd.
-- --- ----- ---------------- -------------- --- -------- -------- ------- -----
ST TRANSFER TO 1102PAY CJT 20145417 23/06/08 183137 806
SH.ST.9999
ST TRANSFER TO 1102PAY CJT 20145419 30/06/08 183140 806
SH.ST.9999
ST TRANSFER TO 1102PAY CJT 20145421 30/06/08 183140 806
I have the following codes to delete those rows that do not have ST in the first column . It does work for the blank rows but bot for rows other than the ST e.g the inter op remains,can someone help
Sub Tiedup1102()
Dim finalrow, t As Long, y As Constants
Sheets("1102").Select
Cells(13, 1).Select
y = Trim(Cells(13, 1).Value) ' extract a string from a cell
'LastRow2 = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
'MsgBox LastRow2
For t = 13 To 2500
Cells(t, 1).Select
If Trim(Cells(t, 1).Value) <> "ST" Then ActiveCell.EntireRow.Delete
Next t
End Sub
Inter Op eration Ctl - 1102
<-Sour ce--> Transaction Desc ription Trxn
Co Acc ount Extension Co de Typ Doc.Ref. Date Session Perd.
-- --- ----- ---------------- -------------- --- -------- -------- ------- -----
ST TRANSFER TO 1102PAY CJT 20145417 23/06/08 183137 806
SH.ST.9999
ST TRANSFER TO 1102PAY CJT 20145419 30/06/08 183140 806
SH.ST.9999
ST TRANSFER TO 1102PAY CJT 20145421 30/06/08 183140 806
I have the following codes to delete those rows that do not have ST in the first column . It does work for the blank rows but bot for rows other than the ST e.g the inter op remains,can someone help
Sub Tiedup1102()
Dim finalrow, t As Long, y As Constants
Sheets("1102").Select
Cells(13, 1).Select
y = Trim(Cells(13, 1).Value) ' extract a string from a cell
'LastRow2 = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
'MsgBox LastRow2
For t = 13 To 2500
Cells(t, 1).Select
If Trim(Cells(t, 1).Value) <> "ST" Then ActiveCell.EntireRow.Delete
Next t
End Sub