Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Importing a collection of WB's where one or more WB's is alreadyopened by a 3rd party

My copying all Sheets2 only, values only, from all workbooks from From
Folder A to new workbooks in Folder B, is tested and works fine.
Now, I want to introduce in my test where one or more workbooks,
unknown to me, are already opened by a third party.
At some point the execution stops to prompt me that a workbook is
already open and whether I want to reopen it or not.
The question is : Can this interruption be ignored by code ?,
considering that I do not want to re-open the workbook if it is
already open.
If the code is not a mile long, can you help me, or point me in the
right direction ?
Thank you,
J.P.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Importing a collection of WB's where one or more WB's is already o

You can open the file read only. Dong this you will be reading the values as
they were the last time the file was saved...
--
HTH...

Jim Thomlinson


"u473" wrote:

My copying all Sheets2 only, values only, from all workbooks from From
Folder A to new workbooks in Folder B, is tested and works fine.
Now, I want to introduce in my test where one or more workbooks,
unknown to me, are already opened by a third party.
At some point the execution stops to prompt me that a workbook is
already open and whether I want to reopen it or not.
The question is : Can this interruption be ignored by code ?,
considering that I do not want to re-open the workbook if it is
already open.
If the code is not a mile long, can you help me, or point me in the
right direction ?
Thank you,
J.P.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Importing a collection of WB's where one or more WB's is alreadyopened by a 3rd party

On Dec 2, 9:04*am, u473 wrote:
My copying all Sheets2 only, values only, from all workbooks from From
Folder A to new workbooks in Folder B, is tested and works fine.
Now, I want to introduce in my test where one or more workbooks,
unknown to me, *are already opened by a third party.
At some point the execution stops to prompt me that a workbook is
already open and whether I want to reopen it or not.
The question is : Can this interruption be ignored by code ?,
considering that I do not want to re-open the workbook if it is
already open.
If the code is not a mile long, can you help me, or point me in the
right direction ?
Thank you,
J.P.


You could open the file in readonly mode ie.
Application.Workbooks.Open Filename:="C:\MyFile.xls", ReadOnly:=True

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
Unique value party Arlen Excel Discussion (Misc queries) 0 July 16th 08 08:09 PM
Third-Party Add-in, Names [email protected] Excel Programming 2 May 2nd 07 08:19 PM
Referencing another WB's cells, but not formulas/values. anna Excel Worksheet Functions 3 March 31st 07 03:36 PM
3rd party add ins for XL 07 Dave F Excel Discussion (Misc queries) 8 February 16th 07 02:09 PM
Copy-Paste between sheets in dif WB's konpego Excel Programming 2 November 5th 04 12:34 PM


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