Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Opening Excel remotely

I have an Excel file on a network which happens to be on a different machine
than the Excel Application I want to open this file

What code would launch the Excel app automatically ( without user
intervention) that is on the network as well as then go and open this excel
file which is also on the network but in a different location from the Excel
App. I thought CreateObject but that doesn't seem to do it

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Opening Excel remotely

To open the workbook in the existing Excel session:

Application.Workbooks.Open PathName

- Or, to start a new Excel session:

Dim XLApp As New Excel.Application

XLApp.Workbooks.Open PathName
XLApp.Visible = True

.... Add any additional code here.

And, unless you plan on leaving the book open for your
user, you should end your code with the following (to
close the Excel session and free up the object variable):

XLApp.Quit
Set XLApp = Nothing

K Dales
-----Original Message-----
I have an Excel file on a network which happens to be on

a different machine
than the Excel Application I want to open this file

What code would launch the Excel app automatically (

without user
intervention) that is on the network as well as then go

and open this excel
file which is also on the network but in a different

location from the Excel
App. I thought CreateObject but that doesn't seem to do it

Thanks


.

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
Copy a file remotely Jeff Excel Discussion (Misc queries) 1 January 26th 08 08:20 PM
Opening Excel file when connected to the system remotely TP Excel Discussion (Misc queries) 0 June 14th 07 09:52 PM
Protect a range of cells remotely from another file Vish Excel Discussion (Misc queries) 0 November 14th 06 09:38 PM
Excel slow but NOT when connected remotely!! T-Bone Excel Discussion (Misc queries) 1 September 21st 06 02:55 PM
Editing Spreadsheets Remotely Hatte Excel Discussion (Misc queries) 2 August 15th 06 02:00 PM


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