Mackeral
Board Regular
- Joined
- Mar 7, 2015
- Messages
- 232
- Office Version
- 365
- Platform
- Windows
This is my code:S
"Last__Row" tells me the same thing as "Ctrl_End" or TS.
What am I missing?
VBA Code:
Sub Data_Delete_Rows(Sheet_Spec, _
Row_Start, _
Optional Row_End = -1)
' Delete indicated Rows & returning Start Row.
Dim SHEET As Worksheet
Call Sheet_Arg(Sheet_Spec, SHEET, Sheet_Name)
If Row_End = -1 Then
Row_End = Last__Row(SHEET)
End If
If Row_End >= Row_Start Then
Call Go_To(Row_Start, 1)
rng = Row_Start & ":" & Row_End
SHEET.Rows(rng).Delete
TS = Last__Row(SHEET)
If TS <> Row_Start Then Stop ' <-- Error stop here
End If
End Sub ' Delete_Data_Rows()
"Last__Row" tells me the same thing as "Ctrl_End" or TS.
What am I missing?