Excel with Intranet
Spicy Meatball
Joined: Jan 2004
Posts: 1,115
Likes: 0
From: Liverpool UK
How do you mean Excel VB? Is it an excel sheet that has VBA (visual basic for applications) code incorporated into it? VB and Excel are seperate development tools (well Excel isnt really a dev tool) but you can mix the two together for advanced users).
Plus, are you accessing it through the network (i.e. is it stored on the server) or is it on your local machine that happens to be networked?
Regards
Maz
Plus, are you accessing it through the network (i.e. is it stored on the server) or is it on your local machine that happens to be networked?
Regards
Maz
Thread Starter
Joined: Jan 2000
Posts: 19
Likes: 0
From: Dublin, Ireland
Ta Spicy
Yes it is a spreadsheet with some macros (VBA), and it is on the server to be used from many locations. I'm not at work at the moment to give you the exact error code but 1004 also seems to appear at times all when the user tries to close the application.
Yes it is a spreadsheet with some macros (VBA), and it is on the server to be used from many locations. I'm not at work at the moment to give you the exact error code but 1004 also seems to appear at times all when the user tries to close the application.
Spicy Meatball
Joined: Jan 2004
Posts: 1,115
Likes: 0
From: Liverpool UK
Behind the button that closes the sheet use the following code:
----------------------------------------------
On Error GoTo err1
me.close
err1:
MsgBox err.description
----------------------------------------------
This will attempt to close the worksheet, and if it cant, you will get the description of the error. If you get the description, post it back here.
cheers mate
Maz
----------------------------------------------
On Error GoTo err1
me.close
err1:
MsgBox err.description
----------------------------------------------
This will attempt to close the worksheet, and if it cant, you will get the description of the error. If you get the description, post it back here.
cheers mate
Maz
CH3CH2OH

Joined: Jul 2000
Posts: 526
Likes: 1
From: The Pub




