LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Activate Workbook in Separate Excel Session

If I understood the question correctly, I have used the following code to
force open a new instance of Excel.
Ron Dahl

Sub OpenFileInNewInstanceOfExcel()
Dim TheName As String
Dim oXL As Object
On Error Resume Next ' Defer error trapping.
ChDir CurDir
TheName = Application.GetOpenFilename( _
filefilter:="Excel Files (*.xls), *.xls", _
Title:="Load Excel File")
Set oXL = CreateObject("Excel.application")
oXL.Workbooks.Open TheName
oXL.Application.Visible = True
oXL.ActiveWorkbook.RunAutoMacros xlAutoOpen
End Sub




"Bill Manville" wrote in message
...
Bob Ewers wrote:
Is it possible to activate this workbook without opening it in the

current session of Excel.

Simple answer: no.

More complicated answer: maybe - if you used API calls to find other

instances of Excel and
then use Automation to see if any of them have Test1.xls open. I don't

have details of any
suitable API calls with me.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup



 
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
Startup and template locations in Citrix TS session and local session John Nurick Setting up and Configuration of Excel 2 September 21st 06 10:42 PM
Retrieve data from separate Excel session JessK Charts and Charting in Excel 2 March 27th 06 01:34 AM
Activate Workbook Dolphinv4 Excel Discussion (Misc queries) 2 October 22nd 05 01:45 PM
Workbook.activate Jeff Excel Discussion (Misc queries) 1 December 13th 04 10:22 PM
excel 2000 workbook.activate not 100% reliable with alt+tab Gavin Frayne Excel Programming 9 July 24th 03 09:29 AM


All times are GMT +1. The time now is 08:59 PM.

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"