Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default data pulling with sharing violation

Im having a sharing issue that I hope I can get some advice on. Ive
got one workbook thats shared between 4 or 5 computers; shared settings are
set to not keep a change history and auto-update every 5 minutes. Then Ive
got about 20 non-shared Excel workbooks on other computers that pull data
from the shared workbook. All work is from Excel 2003. The workbooks that
pull data have a timer in VBA to accomplish the data pull every 2 minutes.
Everything runs as planned until the workbook pulling the data tries to
access the shared workbooks data while the shared workbook is considered
locked.
I think Im seeing 2 different issues. One issue is that the non-shared
data-pulling workbook will try to access the shared workbook, get blocked in
doing so, and then open a browser to have the user find the shared workbook
(as if it has been moved or is missing). I have the users cancel out of the
browser dialogue and the workbook gets another update at the next Ontime
event. Ive been able to reproduce this issue by saving the shared workbook
at the same instant another workbook is trying to access its data. Normally,
saving the shared workbook only takes a second, and the non-shared workbooks
only take a second or two to run their code to pull the data, and this issue
seems to be happening far too often for it to just be a coincidence in the
timing.
The second issue is almost identical to the first, however, when the
user tries to cancel out of the browser dialogue, it pops back up immediately
and wont go away (or it seems like it wont go away when its actually
popping up the browser for each piece of data its trying to access). Whats
worse is that all 20 of the non-shared data-pulling workbooks will go into
the same state. The shared workbooks are locked, cant be accessed, and one
of them usually has a sharing violation error message. The times this has
happened (about once a day), weve had to shut down all of the Excel windows
to get it to release the shared workbook and then reopen the files.
Im not very experienced here, but in my reasoning and from what Ive
read, theres not much I can do on the shared workbook side because shared
workbooks are problematic, but there may be something I can do for the
workbooks that pull the data. Is there an error handling procedure I can
write into the macro that will skip the data-pulling process if the shared
workbook is locked? Does Excel even recognize this as an error? Also, if
someone has relative insight on why shared workbooks have sharing violations,
that would be much appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default data pulling with sharing violation

Thanks everybody for the wonderful advice. Okay, so my post was too long to
read; let me ask a simpler question. Can I write code that will check the
availibility of an external data source and skip the update if the source is
locked or utherwise unavailible?


"Stonewall Rubberbow" wrote:
Im having a sharing issue that I hope I can get some advice on... ...help would be much appreciated.

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
Sharing Violation Kevin Rains Excel Discussion (Misc queries) 0 April 30th 10 04:47 PM
Sharing Violation Mike H. Excel Discussion (Misc queries) 0 January 12th 10 05:39 PM
sharing violation HTWB Excel Discussion (Misc queries) 1 December 3rd 07 08:13 AM
Sharing Violation! Simon Reinsch Excel Worksheet Functions 0 February 5th 07 10:33 PM
sharing violation RACHEL Excel Discussion (Misc queries) 3 March 10th 06 05:45 PM


All times are GMT +1. The time now is 06:39 PM.

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"