ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Limitations of shared workbooks (https://www.excelbanter.com/excel-programming/310315-limitations-shared-workbooks.html)

DieuSoleil[_2_]

Limitations of shared workbooks
 
I have a workbook which has a sub that sends a sql query to an external
(Oracle) database. When I check the share workbook property so that
changes can be made by 1+ users at the same time, the sub returns the
following error:

"Run-time error '1004': this command is not available in a shared
workbook"

I can see why there is a restriction on doing this in a shared workbook,
but is there any workaround?

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Wei-Dong Xu [MSFT]

Limitations of shared workbooks
 
Hi,

Thanks for posting in the group.

I have reviewed your thread. Currently I am finding somebody who could help
you on it. We will post back in the newsgroup as soon as possible.

If there is anything unclear, please feel free to post in the group and we
will follow up there.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Peter Huang

Limitations of shared workbooks
 
Hi DieuSoleil,

Did the problem occur when only you open the shared workbook on the network
share?
When the error occurred , if you press debug, which code line did debugger
stop at?
Also here is article which may be the problem, you may take a look.
How to Identify and Remove PLDT/CAR/SGV Macro Viruses
http://support.microsoft.com/?id=176807

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


DieuSoleil[_2_]

Limitations of shared workbooks
 
Peter,

Thanks for the reply.

The error occurs when I call the sub that sends off the SQL query,
irrespective of whether I'm using the file on my client or whether I'm
accessing it via the network in IE (v6).

When the workbook is not shared it works perfectly in both environments.

Even when I created a workbook with only 1 procedure (to send off a
query to the db) I had the same problem when it was shared, likewise the
problem occurs when I try and re-run a procedure generated using the
macro recorder so I'm sure the problem is not related to my code.

When the error occurs I am not given the opportunity to access the
debugger: the button is greyed out, as is continue.

I have checked for the viruses you mentioned but none of them are
present on my system.

I'm using MS Excel 2000 SP3 on Windows 2000 SP4.

Thanks again for the assistance.
Regards,
Iain


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Peter Huang

Limitations of shared workbooks
 
Hi,

I have replied to your another issue in the group below.
Subject: 'Server-side' apps
Newsgroups: microsoft.public.excel.programming

Since the two issues are related, I will follow you up in that thread.

Thanks.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



All times are GMT +1. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com