KeithWilliams
Registered User.
- Local time
- Today, 15:28
- Joined
- Feb 9, 2004
- Messages
- 137
Hi,
I have the following function on a form:
This is failing on the first line, CreateObject("Scripting.FileSystemObject"), with the error:
This application ran fine on a new PC with Office 2003 installed. However, it fails with the above error when run via Citrix on a Citrix Server with Office 2003 again newly installed. I have checked it on the Citrix server in debug mode, and there are no missing references in Tools>References. I have even added the Microsoft Scripting Library (scrrun.dll) as a reference, although it was not needed on my machine, but this made no difference.
I would greatly appreciate any suggestions on what to try next!
Thanks,
Keith.
I have the following function on a form:
Code:
Private Function GetCitrixClientHardDrive()
Dim objFileSystem As Object, objDrive As Object, objDriveCollection As Object
Set objFileSystem = CreateObject("Scripting.FileSystemObject")
Set objDriveCollection = objFileSystem.Drives
For Each objDrive In objDriveCollection
If InStr(objDrive.ShareName, "C$") > 0 And InStr(objDrive.ShareName, "Client") > 0 Then
GetCitrixClientHardDrive = objDrive.DriveLetter
Exit Function
End If
Next
GetCitrixClientHardDrive = ""
End Function
This is failing on the first line, CreateObject("Scripting.FileSystemObject"), with the error:
Run-time error '-2147024770 (8007007e)':
Automation error
The specified module could not be found.
This application ran fine on a new PC with Office 2003 installed. However, it fails with the above error when run via Citrix on a Citrix Server with Office 2003 again newly installed. I have checked it on the Citrix server in debug mode, and there are no missing references in Tools>References. I have even added the Microsoft Scripting Library (scrrun.dll) as a reference, although it was not needed on my machine, but this made no difference.
I would greatly appreciate any suggestions on what to try next!
Thanks,
Keith.