vba error: object variable or with block variable not set
I have no idea what has just happened! Please help. Here is my code!
If intMsgBox = vbYes Then
Unload frmNewOrder // error here
Unload Main_Menu //error here
ActiveSheet.PrintPreview
wkbNewOrder.Worksheets("New Order").Select
wkbNewOrder.Worksheets("New Order").Delete
wkbNewOrder.Worksheets("Main Menu").Select
End If
frmNewOrder
andMain_Menu
? – sam092 Oct 25 '13 at 5:32