Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Multiple hits on an excel file

Hi,

I've got a Word macro that gets an Excel file as an object and finds data in
it. It's working beautifully except that if multiple users do the same task
at the same time (hitting the Excel file) we're getting a sharing violation
error/conflict. Normally the search and recovery of data is done seemlessly
but when multiple users are accessing the Excel file it sometimes appears
onscreen and sometimes freezes the macro.

I tried "sharing" the file and even making the Excel file a template but
neither possibility seems to provide a solution. Before abandoning Excel
altogether, I wanted to explore other options.

I thought the template version might work but noticed that that GetObject
doesn't create a new version of the file but rather opens the template
itself. Is there another methodology to open an Excel file from Word that
could work with a template (and create a separate document)?

Any ideas/hints would be appreciated!!!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Multiple hits on an excel file

One of the pitfalls of the shared file is the one user at a time. If you try
saving to the users hard drive and then re-saving to the server file after
the user has modified the file, you open up the possibility of losing changes
that others might have made during the same time frame because only the last
saved file will prevail.
Until someone comes up with a way to process NRT changes to Excel without
closing the file to other users, it is one user at the time.

"jille" wrote:

Hi,

I've got a Word macro that gets an Excel file as an object and finds data in
it. It's working beautifully except that if multiple users do the same task
at the same time (hitting the Excel file) we're getting a sharing violation
error/conflict. Normally the search and recovery of data is done seemlessly
but when multiple users are accessing the Excel file it sometimes appears
onscreen and sometimes freezes the macro.

I tried "sharing" the file and even making the Excel file a template but
neither possibility seems to provide a solution. Before abandoning Excel
altogether, I wanted to explore other options.

I thought the template version might work but noticed that that GetObject
doesn't create a new version of the file but rather opens the template
itself. Is there another methodology to open an Excel file from Word that
could work with a template (and create a separate document)?

Any ideas/hints would be appreciated!!!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Multiple hits on an excel file

Just open the template file normally, assuming it has been save as a
Template with the .xlt extension ; you will open a copy of the original.

Workbooks.Open PathToTemplate & "Yourtemlate.xlt"

NickHK

"jille" wrote in message
...
Hi,

I've got a Word macro that gets an Excel file as an object and finds data

in
it. It's working beautifully except that if multiple users do the same

task
at the same time (hitting the Excel file) we're getting a sharing

violation
error/conflict. Normally the search and recovery of data is done

seemlessly
but when multiple users are accessing the Excel file it sometimes appears
onscreen and sometimes freezes the macro.

I tried "sharing" the file and even making the Excel file a template but
neither possibility seems to provide a solution. Before abandoning Excel
altogether, I wanted to explore other options.

I thought the template version might work but noticed that that GetObject
doesn't create a new version of the file but rather opens the template
itself. Is there another methodology to open an Excel file from Word that
could work with a template (and create a separate document)?

Any ideas/hints would be 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
VLOOKUP - calculating multiple hits carol Excel Discussion (Misc queries) 2 December 10th 07 03:24 PM
How do I add multiple values in an array based on multiple hits? Steve in Columbia Excel Discussion (Misc queries) 12 September 10th 07 01:14 AM
Summing multiple hits using match, offset and index method [email protected] Excel Programming 2 March 8th 06 09:35 AM
multiple hits in random sequences bill gras Excel Worksheet Functions 2 November 4th 05 09:03 AM
lookup help with multiple hits O'C Excel Worksheet Functions 0 November 11th 04 09:28 PM


All times are GMT +1. The time now is 08:54 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"