ExcelDriver.OpenWorkbook Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenWorkbook(String) |
Opens the specified Excel workbook on the local computer. |
OpenWorkbook(String, Nullable<DateTime>) |
Opens the specified Excel workbook on the local computer if the date that the workbook was last saved matches the specified date. |
OpenWorkbook(String, Boolean, String, String, Nullable<DateTime>) |
Opens the specified Excel workbook on the local computer if the date that the workbook was last saved matches the specified date, using the specified passwords if the workbook is protected or write-reserved. |
OpenWorkbook(String)
Opens the specified Excel workbook on the local computer.
public void OpenWorkbook (string filePath);
member this.OpenWorkbook : string -> unit
Public Sub OpenWorkbook (filePath As String)
Parameters
- filePath
- String
Applies to
OpenWorkbook(String, Nullable<DateTime>)
Opens the specified Excel workbook on the local computer if the date that the workbook was last saved matches the specified date.
public void OpenWorkbook (string filePath, Nullable<DateTime> lastSaveDate);
member this.OpenWorkbook : string * Nullable<DateTime> -> unit
Public Sub OpenWorkbook (filePath As String, lastSaveDate As Nullable(Of DateTime))
Parameters
- filePath
- String
Applies to
OpenWorkbook(String, Boolean, String, String, Nullable<DateTime>)
Opens the specified Excel workbook on the local computer if the date that the workbook was last saved matches the specified date, using the specified passwords if the workbook is protected or write-reserved.
public void OpenWorkbook (string filePath, bool updateLinks, string password, string writeResPassword, Nullable<DateTime> lastSaveDate);
member this.OpenWorkbook : string * bool * string * string * Nullable<DateTime> -> unit
Public Sub OpenWorkbook (filePath As String, updateLinks As Boolean, password As String, writeResPassword As String, lastSaveDate As Nullable(Of DateTime))
Parameters
- filePath
- String
- updateLinks
- Boolean
- password
- String
- writeResPassword
- String
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for