JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 558
- Office Version
- 365
- Platform
- Windows
Hi All,
Recently I noticed my computer becoming very sluggish. Even though I have a new Acer Aspire 5 with 20GB Ram, I noticed that when I show a user form, with this code...
This is the form:
The calculations are still being triggered.
I have noticed that excel continually wants to recalculate what I believe to be the same 8 threads. It does this many many times.
The form initialization is this:
I don't use any sheet triggered events and it takes 7 seconds to show this very simple form.
I am greatly concerned that the code has been corrupted somewhere else in the model and is showing itself here so any guidance would be greatly appreciated
Thanks in advance
Jeff.
Recently I noticed my computer becoming very sluggish. Even though I have a new Acer Aspire 5 with 20GB Ram, I noticed that when I show a user form, with this code...
VBA Code:
Sub ShowInputForm()
' Show Input Form
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
frmInput.Show vbModeless
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
This is the form:
The calculations are still being triggered.
I have noticed that excel continually wants to recalculate what I believe to be the same 8 threads. It does this many many times.
The form initialization is this:
VBA Code:
Private Sub UserForm_initialize()
frmInput.Label3.Caption = Sheets("Build Records").Range("AA1").Value
frmInput.Label3.ForeColor = RGB(0, 0, 255)
frmInput.Label5.Caption = Sheets("Build Records").Range("AP2").Value
frmInput.Label5.ForeColor = RGB(0, 0, 255)
frmInput.Label7.Caption = Sheets("Build Records").Range("AR2").Value
frmInput.Label7.ForeColor = RGB(0, 0, 255)
frmInput.Label9.Caption = Sheets("Build Records").Range("AT2").Value
frmInput.Label9.ForeColor = RGB(0, 0, 255)
End Sub
I don't use any sheet triggered events and it takes 7 seconds to show this very simple form.
I am greatly concerned that the code has been corrupted somewhere else in the model and is showing itself here so any guidance would be greatly appreciated
Thanks in advance
Jeff.