LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA - Error handling problem

Hi,

I am using centralized error handling in my VB program whic
manipulates excel sheets.

My question is this:

I have a function which I call whenever a run time error is detected


I open a file in my main code.
The main code calls other subroutines.
When a run time error is detected, the error handling function i
called.
The erro handling function displays an appropraite message and has th
"End" statement.
I expect the end statement to close all files that were opened in th
program. But it turns out that it only closes files opened in th
sub/function where the error occured.

Can anyone please tell me how I make sure all files opened durin
program execution are closed.

Thanks!
BrutalMeta

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
handling calculated excel cell error messages RK Excel Discussion (Misc queries) 2 October 22nd 07 01:05 PM
Error handling problem Jim G Excel Discussion (Misc queries) 2 October 3rd 07 02:19 AM
Handling #NUM! error Michel Khennafi Excel Worksheet Functions 1 February 26th 07 08:49 PM
Excel Error Handling brutalmetal Excel Programming 1 January 13th 04 02:11 PM
Error Handling Bill Lunney Excel Programming 0 August 6th 03 11:56 PM


All times are GMT +1. The time now is 09:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"