Hi,
I think the first thing I would try is:
Code:
If ActiveWorkbook Is Nothing Then
MsgBox "No workbook currently active"
End If
I suggest this rather than checking Workbooks.Count in case a user has Personal.xls
Have a play around with it to see if there are any caveats?
Hope that helps...