Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Scripting.FileSystemObject Networking

Dear colleagues,
I have a problem to reference the FileSystemObject object through the
simple LAN connection.
For example of this problem let's say that I am working on the
Computer named "comp1" & trying to reference some VBA objects on
another Computer on the network named "comp2". Generaly LAN is working
correctly even when using VBA the :
Statement ChDir "\\comp2\c" works with no problem
Function Dir("\\comp2\c") works with no problem
Copying files through the network(using VBA) from "c\MyDoc" to
"\\comp2\c" works with no problem

So, the actual problem is how to reference the FileSystemObject object
on the "\\comp2" from "\\comp1" (or from any Dir on "comp1" ie just
from "c\MyDoc")
Variables:
Dim fso as Object '(=FileSystemObject)
The statement
Set fso = CreateObject("Scripting.FileSystemObject", "\\comp2")
returns the error: "Run-time error '462' The remote server machine
does not exist or is unavailable"
The statements:
Set fso = CreateObject("Scripting.FileSystemObject")
Set fso = CreateObject("Scripting.FileSystemObject", "\\comp1")
both works & returns the FileSystemObject on "comp1"
Althought I think that there is no problem with network just brief
network info:
- on both PC's ("comp1" & "comp2") there are Win98 & Office 2000
- connection Planet_ENW9504_PCI_networkCards, UTP cable, via Switch,
protocol IPX/SPX
-Services File&PrinterSharing & ClientforMicrosoftNetworks

So far I have trying (unsuccessfuly) to find solution on the following
web sites:
CPearson; ErlandserData; J-Walk; StephenBulXLS; DaveMcRitchie &
offcourse Office2000 VBA-Help

So anyone who knows:
- the solution of this problem, or
- the relevant web site which enlight this theme
please reply.
Thank You in advance.
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
NETWORKING DATABASE Raja Excel Discussion (Misc queries) 1 December 26th 07 08:35 AM
Excel networking help needed for backup Scilin Setting up and Configuration of Excel 0 February 20th 06 09:11 PM
Networking excel spreadsheets error Leander Excel Discussion (Misc queries) 0 February 22nd 05 10:09 AM
Scripting.FileSystemObject Leif Rasmussen Excel Discussion (Misc queries) 1 January 12th 05 11:21 PM
Networking problems... Rob Oostveen Excel Programming 1 August 26th 03 06:09 PM


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