Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Managing errors in VBA

I am in the process of building an excel template which links
automatically to an excel database. A macro is involved in transferring
some of the data to the database. 15 different people will have a
template and it is possible that 2 of them may try to update the
database at exactly the same time. This would result in a macro error.
Is it possible that instead of showing the error and taking the user
into VBA, a flag could show up in the template telling the user to try
again in 5 minutes?

Any help would be gratefully received!

James

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Managing errors in VBA

sounds like something you would incorporate in your code in terms of addin
code to see if the database can be updated before trying to update it.
Without knowing how you are trying to update the database, it would be hard
to provide specifics. If you want to find if a workbook on a shared drive is
opened by another user you could use

http://support.microsoft.com?kbid=138621
XL: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=291295
XL2002: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=213383
XL2000: Macro Code to Check Whether a File Is Already Open

--
Regards,
Tom Ogilvy


" wrote:

I am in the process of building an excel template which links
automatically to an excel database. A macro is involved in transferring
some of the data to the database. 15 different people will have a
template and it is possible that 2 of them may try to update the
database at exactly the same time. This would result in a macro error.
Is it possible that instead of showing the error and taking the user
into VBA, a flag could show up in the template telling the user to try
again in 5 minutes?

Any help would be gratefully received!

James


Reply
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
Excel Throwing Circular Errors When No Errors Exist MDW Excel Worksheet Functions 1 August 10th 06 02:15 PM
Managing Printing darusman[_3_] Excel Programming 0 August 8th 06 09:26 PM
Managing bad data hasn7 Excel Discussion (Misc queries) 2 May 18th 06 10:53 PM
Managing Add-Ins [email protected] Excel Programming 1 June 8th 05 09:47 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM


All times are GMT +1. The time now is 05:32 PM.

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

About Us

"It's about Microsoft Excel"