Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Multi-Users and VBA

Advice please.

I have an application running on a network server that is accessible by a
number of different users.
I only ever want one person to use it at a time, and if another attempts to
open it I want VBA to deliver a message.

Presently the standard message created by Office, which tells the use
another user is modifying , do you want to open it read-only etc., is what
they see. Can I intercept this message and control whether they can open it
or not - even if read only ?

TIA

Cheers
Nigel




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Multi-Users and VBA

Hi Nigel

Lousy no-good reply, but a reply:

There's a VBA property for workbooks named "WriteReservedBy" that's supposed to return the
name of the one "really" using it. Now this works perfect at all times on some systems,
never ever on other systems. And it's said to have something to do with how the network is
built. You never can tell.

I've always been on not-too-well-built networks, so I've never seen it working. And so I
have no idea wether a macro would run before the prompt, or if you can open the file by
code and catch it there. But try opening a file that you really know is in use right now
by someone else, and see i this property returns some other name than your own. If it
does, that's at least something to build on -you have a great network and a vision :-)

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Nigel" wrote in message ...
Advice please.

I have an application running on a network server that is accessible by a
number of different users.
I only ever want one person to use it at a time, and if another attempts to
open it I want VBA to deliver a message.

Presently the standard message created by Office, which tells the use
another user is modifying , do you want to open it read-only etc., is what
they see. Can I intercept this message and control whether they can open it
or not - even if read only ?

TIA

Cheers
Nigel




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---



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
Number of Multi-users SW Excel Discussion (Misc queries) 2 March 26th 09 07:38 PM
Sharing a worksheet among multi. Users over Network. Adrian3a New Users to Excel 1 March 8th 07 12:28 AM
Multi users and linking to Access Ray Excel Discussion (Misc queries) 0 September 20th 05 03:15 AM
Auto-update with multi-users Stephane Bisson Excel Worksheet Functions 1 June 18th 05 01:18 PM
multi users seanmagoo Excel Programming 0 September 3rd 03 11:44 PM


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