Web Development
3 replies
by luke tennant
use createObject("path/file")
ie: set exlobj = createObject("path/file.xls")
If the file dosen't exist it will be created. The file is not displayed, but you can now iteract with it using vb/vba.
I have cut and pasted the MSDN refrence for createObject (vb ref) below:-
CreateObject Function
Creates and returns a reference to an ActiveX object.
Syntax
CreateObject(class,[servername])
The CreateObject function syntax has these parts:
Part Description
class Required; Variant (String). The application name and class of the object to create.
servername Optional; Variant (String). The name of the network server where the object will be created. If servername is an empty string (""), the local machine is used.
by gatorpy
by gatorpy
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending