![]() |
Excel with Intranet
I have a small Excel VB program running on my companies intranet. My problem is when I use the close button it gives an 'Out of range' error. Any Ideas.
|
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 :) |
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. |
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 |
Microsoft Link
|
| All times are GMT. The time now is 12:17. |
Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.