Brian.Crawford
Board Regular
- Joined
- Oct 3, 2007
- Messages
- 136
I have a form that processes data from a sheet on demand by the user clicking a button the form. Before starting the processing I put the word "Working" in the processed record count field and then at the end (30-60+ seconds later) I place the record count in that field. The code is:
Private Sub frmGetActuals_Click()
With frmManageWorkBook
.ActualsRecdNo = "Working"
FmtTrialBalance
.ActualsRecdNo =GetLastRow(Sheets("Actuals").Range("A:A"))
End With
End Sub
Overall the routine works but does not put the word "working" in the ActualsRecdNo on the form when the user clicks the button. But does put the count in at the end of processing.
HOWEVER - If I put in a breakpoint at the beginning and step through this SUB using the debugger (F8), when it executes .ActualsRecdNo = "Working", it does put the word in the field and displays it on the form.
Go Figure
would the state of;
Application.calculation or
Application.screenupdating
impact this form's display (I though only WS/WB) and if so why would the state be changed by the debugger
Any suggestions
Thanks in advance
Brian
Private Sub frmGetActuals_Click()
With frmManageWorkBook
.ActualsRecdNo = "Working"
FmtTrialBalance
.ActualsRecdNo =GetLastRow(Sheets("Actuals").Range("A:A"))
End With
End Sub
Overall the routine works but does not put the word "working" in the ActualsRecdNo on the form when the user clicks the button. But does put the count in at the end of processing.
HOWEVER - If I put in a breakpoint at the beginning and step through this SUB using the debugger (F8), when it executes .ActualsRecdNo = "Working", it does put the word in the field and displays it on the form.
Go Figure
would the state of;
Application.calculation or
Application.screenupdating
impact this form's display (I though only WS/WB) and if so why would the state be changed by the debugger
Any suggestions
Thanks in advance
Brian