Open an existing file.
Syntax
'Declaration
Public Overloads Sub Open( _
ByVal As System.String, _
Optional ByVal As System.Integer, _
Optional ByVal As System.String _
)
'Usage
Dim instance As ExcelWorkbook
Dim file As System.String
Dim sheetIndex As System.Integer
Dim password As System.String
instance.Open(file, sheetIndex, password)
public void Open(
System.string ,
System.int ,
System.string
)
Parameters
- file
- The full path of the file
- sheetIndex
- The index of the Worksheet which will be opened. if the value is -1, it will load all sheets
- password
- The password used to decrypt the file if the file was encrypted with a password
See Also