Click to See Complete Forum and Search --> : CreateObject
fozail
March 15th, 2001, 08:53 AM
Hi All
Dim aa As Object
Set aa = CreateObject("excel.application", "Tiger")
debug.print aa.version
I am trying to run excel on the server (Tiger). But I am getting an error by running from the workstation (Cougar).
Any help appreciated
Johnny101
March 15th, 2001, 04:32 PM
leave out the "Tiger" parameter - that's used for something else. It has nothing to do with the actual server. Just
Set objExcel = CreateObject("Excel.Application")
should be sufficient.
john
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
fozail
March 16th, 2001, 01:58 AM
Thanks for your reply
Yes it works locally but the reason why I need is I want to run the Excel etcc from my machine(Pearl) to any machine(Tiger).
Unfortunately I am getting an error message all the time as below:
Can't create Active X component
If any help would be apprecited
Johnny101
March 16th, 2001, 04:39 PM
You'd have to call some process on the target machine to create a process on that machine. For example, an ASP page on Tiger, even when called from Pearl, will create Excel on Tiger. You could also have an ActiveX EXE running on Tiger that is referenced in an app on Pearl and when Pearl calls a method of that activex EXE on Tiger Excel will be created on Tiger, granted the method calls excel.
that's about the only way i can think of, sorry.
john
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
coolbiz
March 17th, 2001, 11:12 AM
If i'm not mistaken, you must have excel installed on target machine and also the current user must have access to run application on the target PC.
-Cool Bizs
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.