[]
Creates a workbook reference from a workbook name.
Use this method when the workbook should be identified by name rather than by a file path or URI. The specified name can be different from the file name.
public static WorkbookReference FromName(string name)
Public Shared Function FromName(name As String) As WorkbookReference
| Type | Name | Description |
|---|---|---|
| string | name | The workbook name. Must not be |
| Type | Description |
|---|---|
| WorkbookReference | A WorkbookReference that stores the specified workbook name. |
WorkbookReference reference = WorkbookReference.FromName("Budget");
string name = reference.Name;
| Type | Condition |
|---|---|
| ArgumentNullException | if |