sunshine076
Registered User.
- Local time
- Today, 13:02
- Joined
- Apr 6, 2009
- Messages
- 160
So far this code is running fine however I have noticed that everytime I rerun the update for data it keeps showing the form while updating is there a way to hide it and have it show only once for each page that requires it.
Option Explicit
Private Sub process()
Dim ce As String
Dim AA As Range
Dim d As Integer
'.Cells.Locked = False
'.Range("A1:O4").Locked = True 'adjust range to suit
'.Protect Password:="macrotime"
'End With
Sheets("ToolChange").Select
Sheets("Toolchange").Unprotect Password:=P
Range("D1").Select
d = 4
ce = "y"
Do
Set AA = Range(Cells(1, d), Cells(48, d))
'Cells (row,column)
Cells(50, d).Value = Application.WorksheetFunction.CountIf(AA, ce)
ActiveCell.Offset(0, 1).Select
d = d + 1
Loop Until d = 12
Set AA = Nothing
Load LotForm
LotForm.Show vbModeless
Sheets("ToolChange").Calculate
End Sub
Option Explicit
Private Sub process()
Dim ce As String
Dim AA As Range
Dim d As Integer
'.Cells.Locked = False
'.Range("A1:O4").Locked = True 'adjust range to suit
'.Protect Password:="macrotime"
'End With
Sheets("ToolChange").Select
Sheets("Toolchange").Unprotect Password:=P
Range("D1").Select
d = 4
ce = "y"
Do
Set AA = Range(Cells(1, d), Cells(48, d))
'Cells (row,column)
Cells(50, d).Value = Application.WorksheetFunction.CountIf(AA, ce)
ActiveCell.Offset(0, 1).Select
d = d + 1
Loop Until d = 12
Set AA = Nothing
Load LotForm
LotForm.Show vbModeless
Sheets("ToolChange").Calculate
End Sub