Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
P P is offline
external usenet poster
 
Posts: 2
Default Using Object model to start an instance of excel on another computer?

Hi everybody, thanks in advance for the feedback.
I am automating some excel sheets from VB. What I have now is the
below code that calls up an excel sheet and sets it running. This works
great when everything runs locally on my comp. Code below:

Sub foo()
Dim bar As Object
Dim ws As Object
Set bar = CreateObject("Excel.Application")
bar.Visible = True
Set ws = bar.Workbooks.Open("C:\Documents and Settings\p\My
Documents\book1.xls")
bar.Run "thisworkbook.doAnalysis"

End Sub

Is there any way to make the isntance of excel come up and start
running on a different computer?

I've tried this for the createObject call but it doesn't seem to be
working:

Set bar = CreateObject("Excel.Application", "otherCompName")

Any ideas?
Thanks,
P

  #2   Report Post  
Posted to microsoft.public.excel.programming
P P is offline
external usenet poster
 
Posts: 2
Default Using Object model to start an instance of excel on another comput

Thanks Kim, I'll take a look at your stuff!

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
want to access xml from excel object model B Deepak Excel Programming 0 December 28th 05 12:05 PM
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM
Excel 2002 Object Model Hiep Excel Programming 2 March 25th 05 12:41 AM
Excel 2003 object model Jim Excel Programming 0 October 8th 04 07:03 PM
Excel object model Alan Hutchins Excel Programming 0 September 17th 04 11:32 AM


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