Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Multiple Instance of appliction

I currently have several files in my XLSTART folder that I use all the time.
Normally there is only one instance of EXCEL running. However, I do
periodically have an instance open via automation to run a a couple macros
then close out again. When the second instance opens, it wants to reload all
those files in the XLSTART. Is there a way to prevent this from happening?
When it trys to load them, I get the file in use error dialog boxes asking
for Read/Only or Notify.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Multiple Instance of appliction

Tim,

Try starting the second instance of Excel in safe mode - which uses the /s

You will need to play around with running the command line version, including macro security
settings and furhter automation - but this worked for me:

Sub test()
Dim strProgram As String
Dim TaskID As Double

strProgram = "C:\Program Files\Microsoft Office\Office11\Excel.exe /s ""C:\Copy of Excel\Test
File.xls"""
TaskID = Shell(strProgram, 1)

End Sub

HTH,
Bernie
MS Excel MVP


"Tim Rush" wrote in message
...
I currently have several files in my XLSTART folder that I use all the time.
Normally there is only one instance of EXCEL running. However, I do
periodically have an instance open via automation to run a a couple macros
then close out again. When the second instance opens, it wants to reload all
those files in the XLSTART. Is there a way to prevent this from happening?
When it trys to load them, I get the file in use error dialog boxes asking
for Read/Only or Notify.



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
VLOOKUP more than one instance tojo107 Excel Discussion (Misc queries) 1 May 1st 07 11:03 PM
First Instance Howard Excel Discussion (Misc queries) 8 March 17th 07 03:05 PM
Testing same cell across multiple sheets for a string and counting each instance? [email protected] Excel Worksheet Functions 5 March 8th 07 02:57 PM
How do I get rid of a 2nd instance (xls:2)? greenwellies Excel Discussion (Misc queries) 4 April 24th 06 04:44 AM
Return only one instance Pat Excel Worksheet Functions 4 March 9th 05 10:09 PM


All times are GMT +1. The time now is 11:43 AM.

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"