Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help with CreateObject

Hi all ,
I have two PCs on a network - one with windows vista and another with
windows xp operating system. I dont know much about networks and all i
know is that if i go to 'Network' on my windows vista taskbar - then i
can see 'Netgear DG834GT Router' and 'Rashid-PC' (the pc with vista)
and 'ROB-COMPUTER' (the pc with windows xp). I dont know how the
network was setup but it has something to do with the modem (Netgear
DG834GT Router) being connected to both PCs via wires (the router is
used for connecting to the internet). When i open the ROB-COMPUTER
from the Network window - all i see is the 'Printer' Icon, 'Printers'
Icon, 'SharedDocs' Icon, C drive and D drive..

Im a coding in Excel 2007 and on the PC with windows vista. Basically
I am trying the following code but its not working:

' Declare an object variable to hold the object
' reference. Dim as Object causes late binding.
Dim ExcelSheet As Object
Set ExcelSheet = CreateObject("Excel. Sheet", "ROB-COMPUTER")
' Make Excel visible through the Application object.
ExcelSheet.Application.Visible = True
' Place some text in the first cell of the sheet.
ExcelSheet.Application.Cells(1, 1).Value = "This is column A, row 1"
' Save the sheet to C:\test.xls directory.
ExcelSheet.SaveAs "C:\TEST.XLS"
' Close Excel with the Quit method on the Application object.
ExcelSheet.Application.Quit
' Release the object variable.
Set ExcelSheet = Nothing


I get the following error "Run-time error '462'. The remote server
machine does not exist or is not available." on the following line of
code:

Set ExcelSheet = CreateObject("Excel. Sheet", "ROB-COMPUTER")

Can someone help please?

Many Thanks :D

Regards

Q

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Help with CreateObject

What are you trying to do? What's the network and router have to do with
creating an Excel worksheet?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Q" wrote in message
ups.com...
Hi all ,
I have two PCs on a network - one with windows vista and another with
windows xp operating system. I dont know much about networks and all i
know is that if i go to 'Network' on my windows vista taskbar - then i
can see 'Netgear DG834GT Router' and 'Rashid-PC' (the pc with vista)
and 'ROB-COMPUTER' (the pc with windows xp). I dont know how the
network was setup but it has something to do with the modem (Netgear
DG834GT Router) being connected to both PCs via wires (the router is
used for connecting to the internet). When i open the ROB-COMPUTER
from the Network window - all i see is the 'Printer' Icon, 'Printers'
Icon, 'SharedDocs' Icon, C drive and D drive..

Im a coding in Excel 2007 and on the PC with windows vista. Basically
I am trying the following code but its not working:

' Declare an object variable to hold the object
' reference. Dim as Object causes late binding.
Dim ExcelSheet As Object
Set ExcelSheet = CreateObject("Excel. Sheet", "ROB-COMPUTER")
' Make Excel visible through the Application object.
ExcelSheet.Application.Visible = True
' Place some text in the first cell of the sheet.
ExcelSheet.Application.Cells(1, 1).Value = "This is column A, row 1"
' Save the sheet to C:\test.xls directory.
ExcelSheet.SaveAs "C:\TEST.XLS"
' Close Excel with the Quit method on the Application object.
ExcelSheet.Application.Quit
' Release the object variable.
Set ExcelSheet = Nothing


I get the following error "Run-time error '462'. The remote server
machine does not exist or is not available." on the following line of
code:

Set ExcelSheet = CreateObject("Excel. Sheet", "ROB-COMPUTER")

Can someone help please?

Many Thanks :D

Regards

Q



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help with CreateObject

I am trying to open up and manipulate excel from one computer to
another.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Help with CreateObject

You're trying to instantiate Excel on the remote computer, or run Excel on
the local computer using the copy of Excel on the remote hard drive?

Yikes. I don't believe the first is possible, at least not without using
other specialized software. The second would be lacking all that neat
registry stuff that makes things work.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Q" wrote in message
ups.com...
I am trying to open up and manipulate excel from one computer to
another.



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
Createobject for FTP AG Excel Programming 2 June 28th 07 03:49 AM
CreateObject setup specialK Excel Programming 0 June 19th 06 06:52 PM
VBA - createobject - If ina Excel Programming 2 May 16th 06 09:35 AM
CREATEOBJECT Using VB Karthik[_2_] Excel Programming 2 June 16th 04 09:08 PM
Templates and CreateObject John Excel Programming 1 October 29th 03 01:07 PM


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