Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Invoke exclusive excel process on opening this file

An excel workbook is required to start/use an exclusive Excel.exe process
whenever it is opened.

This is to enable it to use specific tools/options settings which may
conflict with those already in use by other open files that may share an
existing process.

eg. some workbooks will use "Auto calc.", others "Manual calc." options

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Invoke exclusive excel process on opening this file

Hi JB,

Rather than seeking to use a separate instance of Excel, perhaps you could
use the Workbook's Activate and Deactivate events.

In the activate event, read and store the current values of any relevant
Excel level settings and then change these to values appropriate to the
workbook.

In the Workbook's deactivate event, restore the relevant settings to the
stored values.

As a simple example, in the workbook's ThisWorbook module:

Option Explicit
Public CalcMode As Long

'=======================
Private Sub Workbook_Activate()

CalcMode = Application.Calculation

Application.Calculation = xlCalculationManual

End Sub
'<<=======================

'=======================
Private Sub Workbook_Deactivate()

Application.Calculation = CalcMode

End Sub
'<<=======================


---
Regards,
Norman



"JB2005" wrote in message
...
An excel workbook is required to start/use an exclusive Excel.exe process
whenever it is opened.

This is to enable it to use specific tools/options settings which may
conflict with those already in use by other open files that may share an
existing process.

eg. some workbooks will use "Auto calc.", others "Manual calc." options

Any ideas?



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
File in Exclusive Use SSi308 Excel Discussion (Misc queries) 3 June 3rd 10 08:59 PM
Using excel to process QIF file John Keith Excel Discussion (Misc queries) 0 November 14th 09 07:15 AM
Opening an Excel file in a DIFFERENT process clicking on its SHORT Patachoup Excel Discussion (Misc queries) 3 June 22nd 07 12:21 PM
Lost Excel file changes in Outlook attachment due to save process Lost Excel edits in email attachment Setting up and Configuration of Excel 0 December 8th 05 01:53 AM
Excel claims exclusive file may have been changed on save calebmil Excel Discussion (Misc queries) 2 November 20th 05 03:21 PM


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