Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Excel File Open and Locking Issue

Is there an easy way to test to see if a particular Excel file is currently
open and locked via VBA without trying to open the file?

I would like to test this prior to VBA using the TransferSpreadsheet method
in Access. If the file is open, the code will be stuck on
"TransferSpreadsheet" line until the file is closed out, which then the code
will error out. Therefore, if the file is open and locked, I would like VBA
to pick up on this, display an error message with the fact the file is open
and locked, and by whom. If need be, this can be going through Windows API.

--

Sincerely,

Ronald R. Dodge, Jr.
Master MOUS 2000


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
Excel file keeps locking - Strange problem Mick34 Excel Discussion (Misc queries) 0 July 15th 09 03:04 PM
Excel & SharePoint Locking Issue DLPoff Excel Discussion (Misc queries) 0 January 18th 08 02:05 AM
excel 2007 file locking TMC Excel Discussion (Misc queries) 0 February 6th 07 04:08 PM
Major Issue - can no longer open my file!! gonger[_7_] Excel Programming 5 June 1st 06 01:26 AM
Major Issue - can no longer open my file!! gonger[_8_] Excel Programming 0 May 31st 06 11:00 PM


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