C
Cerberus
For some reason, I'm having 2 pieces of information deleted as soon as I
select a CommandSub_Click() that only states:
Dim NextRow As Long
Finish.Hide
Worksheets("WORK ORDER").Activate
End Sub
Nothing there says to delete the information to my knowledge. So I tried to
verify the information on the Worksheet_Activate() for Sheet2 (WORK ORDER) to
see if there is anything calling for an unload or delete and it states:
Dim HiddenRow&, RowRange As Range
'< Set the column that contains data >
Const DataCol As String = "A"
'****************************
ActiveWindow.DisplayZeros = False
Application.ScreenUpdating = False
For HiddenRow = 1 To ActiveSheet.UsedRange.Rows.Count
'Take the Length of the value in column A of each row
If Len(Range(DataCol & HiddenRow).Value) <> 0 Then
'there's something in this row - don't hide
Rows(HiddenRow).EntireRow.Hidden = False
Else
'there's nothing in this row yet - hide it
Rows(HiddenRow).EntireRow.Hidden = True
End If
Next HiddenRow
Application.ScreenUpdating = True
End Sub
Just to give you an idea of why I'm so confused, the information that is
getting deleted is located in column B and that information is controlled by
a source on Sheet1(CONFIG) which has nothing to do with the first
CommandSub_Click() that was referenced. When tested, the cells that
contained the information that is deleted has the information all the way
until the CommandSub_Click() is preformed.
What is going on here? What am I missing?
select a CommandSub_Click() that only states:
Dim NextRow As Long
Finish.Hide
Worksheets("WORK ORDER").Activate
End Sub
Nothing there says to delete the information to my knowledge. So I tried to
verify the information on the Worksheet_Activate() for Sheet2 (WORK ORDER) to
see if there is anything calling for an unload or delete and it states:
Dim HiddenRow&, RowRange As Range
'< Set the column that contains data >
Const DataCol As String = "A"
'****************************
ActiveWindow.DisplayZeros = False
Application.ScreenUpdating = False
For HiddenRow = 1 To ActiveSheet.UsedRange.Rows.Count
'Take the Length of the value in column A of each row
If Len(Range(DataCol & HiddenRow).Value) <> 0 Then
'there's something in this row - don't hide
Rows(HiddenRow).EntireRow.Hidden = False
Else
'there's nothing in this row yet - hide it
Rows(HiddenRow).EntireRow.Hidden = True
End If
Next HiddenRow
Application.ScreenUpdating = True
End Sub
Just to give you an idea of why I'm so confused, the information that is
getting deleted is located in column B and that information is controlled by
a source on Sheet1(CONFIG) which has nothing to do with the first
CommandSub_Click() that was referenced. When tested, the cells that
contained the information that is deleted has the information all the way
until the CommandSub_Click() is preformed.
What is going on here? What am I missing?