I have a simple code that for some reason it gives me an error once in a while.
[VBA]Option Explicit
Private Sub Workbook_BeforeClose(Cancel As Boolean)
FrmTotals.Show
End Sub[/VBA]
Now I have this on a spreadsheet that users input data and when closed the form comes up and gives then totals. Now I don't know if it's something the user is doing because it doesn't occur to all users.
It gives the user a RunTime error '13' and End Button.
When I unlock the vb and close I get the RunTime Error when I click Debug It highlights
FrmTotals.Show
And when i put the mouse over it it says
FrmTotals = <Object variable or With block variable not set>
Any Ideas?