D
drinkmaster
Hi All,
I try hide worksheet with macro (visible=xlverryHidden)
If I hide the "fields" worksheet or at the moment not active this is
worksheet and userfrom is runnig then the userform is frozen or,
meantime of move blurs....
I try resolve this problem with nex line:
Sheets("fields").Activate
Worksheets("fields").Select
My opinion the below macro which can be found causes it problem:
First:
Private Sub userform_initialize()
Sheets("Fields").Range("O18:S18").Select
Selection.ClearContents
***************************************
Second:
Private Sub ComboBox1_Change()
Sheets("Fields").Activate
Sheets("Fields").Range("O18:S18").Select
Selection.ClearContents
*********************************************
Third:
'Data Fields Filter of Selected Eq.
Private Sub ComboBox3_Change()
Worksheets("Fields").Range("O17") = ComboBox3 Dim FindString As String
Dim Rng As Range
FindString = Sheets("Fields").Range("O17").Value
If Trim(FindString) <> "" Then
With Sheets("Fields").Range("B:B")
Set Rng = .Find(What:=FindString, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Application.GoTo Rng, True
Else
MsgBox "Nothing found data for selected equipment"
End If
End With
End If
With ActiveCell
Range(Cells(.Row, "B"), Cells(.Row, "F")).Select
Selection.Copy
Range("O18").Select
ActiveSheet.PasteSpecial
End With
End Sub
I try hide worksheet with macro (visible=xlverryHidden)
If I hide the "fields" worksheet or at the moment not active this is
worksheet and userfrom is runnig then the userform is frozen or,
meantime of move blurs....
I try resolve this problem with nex line:
Sheets("fields").Activate
Worksheets("fields").Select
My opinion the below macro which can be found causes it problem:
First:
Private Sub userform_initialize()
Sheets("Fields").Range("O18:S18").Select
Selection.ClearContents
***************************************
Second:
Private Sub ComboBox1_Change()
Sheets("Fields").Activate
Sheets("Fields").Range("O18:S18").Select
Selection.ClearContents
*********************************************
Third:
'Data Fields Filter of Selected Eq.
Private Sub ComboBox3_Change()
Worksheets("Fields").Range("O17") = ComboBox3 Dim FindString As String
Dim Rng As Range
FindString = Sheets("Fields").Range("O17").Value
If Trim(FindString) <> "" Then
With Sheets("Fields").Range("B:B")
Set Rng = .Find(What:=FindString, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Application.GoTo Rng, True
Else
MsgBox "Nothing found data for selected equipment"
End If
End With
End If
With ActiveCell
Range(Cells(.Row, "B"), Cells(.Row, "F")).Select
Selection.Copy
Range("O18").Select
ActiveSheet.PasteSpecial
End With
End Sub