Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to tell Who Opened Excel File.

Hello,

In a Network Computer, an Excel file is opened by someone (eg. PS)

When I open the Excel file, this message dialog is prompted

---------------------------------------------
aaa.xls is locked for editing by 'PS'

Open ..... ...... ....... ..... ..... ...... ...... in use.
---------------------------------------------

My Question is "Is there any way to extract 'PS' ?"
Maybe API ?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How to tell Who Opened Excel File.

Hi

Only way I know is to open read-only and read the WriteReservedBy property. This may or
may not work, depending on the network architecture or something like that.
--
HTH. Best wishes Harald
Followup to newsgroup only please.

"PS" wrote in message ...
Hello,

In a Network Computer, an Excel file is opened by someone (eg. PS)

When I open the Excel file, this message dialog is prompted

---------------------------------------------
aaa.xls is locked for editing by 'PS'

Open ..... ...... ....... ..... ..... ...... ...... in use.
---------------------------------------------

My Question is "Is there any way to extract 'PS' ?"
Maybe API ?

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to tell Who Opened Excel File.

Harald Staff wrote:

Hi

Only way I know is to open read-only and read the WriteReservedBy property. This may or
may not work, depending on the network architecture or something like that.
--
HTH. Best wishes Harald
Followup to newsgroup only please.

"PS" wrote in message ...

Hello,

In a Network Computer, an Excel file is opened by someone (eg. PS)

When I open the Excel file, this message dialog is prompted

---------------------------------------------
aaa.xls is locked for editing by 'PS'

Open ..... ...... ....... ..... ..... ...... ...... in use.
---------------------------------------------

My Question is "Is there any way to extract 'PS' ?"
Maybe API ?

Thanks in advance.




I have tried this experiment on one of my own spreadsheets... Open it
with Notepad and in the first 2-3 lines of garble will have the name of
the last person to access the file. This may not answer your question,
or be technically accurate but it is interesting if nothing else.
Mike
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default How to tell Who Opened Excel File.

Just a thought: if this is your workbook (or at least you have control
over it)and you want to know who is opening it, you could write code
in the Workbook_Open event which captures the user's userID, name, etc
(using Windows APIs) and persist these values somewhere visible to
you. An extension to this idea is to get the workbook to regularly
poll (using the OnTime method) a database, text file on the network,
etc where you can set a value to tell the workbook to close,
effectively throwing out the current user so that you can open the
workbook.

--

"PS" wrote in message ...
Hello,

In a Network Computer, an Excel file is opened by someone (eg. PS)

When I open the Excel file, this message dialog is prompted

---------------------------------------------
aaa.xls is locked for editing by 'PS'

Open ..... ...... ....... ..... ..... ...... ...... in use.
---------------------------------------------

My Question is "Is there any way to extract 'PS' ?"
Maybe API ?

Thanks in advance.

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
help in saving an excel file opened in IE Farooq Sheri Excel Discussion (Misc queries) 1 November 14th 09 01:13 AM
Excel file not viewable when opened Stup88 Excel Discussion (Misc queries) 0 April 4th 07 12:14 AM
cannot open the excel file, the file is already opened cannot open the excel document Excel Discussion (Misc queries) 1 May 19th 06 07:45 AM
convert a .dat file opened in Word to excel? JPM New Users to Excel 3 November 25th 05 10:27 PM
Why does my .csv file not appear when opened in Excel? Puzzled Excel Discussion (Misc queries) 1 November 2nd 05 02:01 PM


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