Using the Open action for Excel advanced
- Updated: 2024/07/02
Using the Open action for Excel advanced
Use the Open action to open a Microsoft Excel spreadsheet or a CSV file.
Open action enables you to specify if the spreadsheet must open in read-only mode, read-write mode, requires a password to open the spreadsheet, and so on.
When you use the Open action to open a macro-enabled Excel workbook of .xlsm format, the Auto_Open VBA procedure does not run automatically because the VBA procedure runs only when the Excel workbook is opened manually. This is a default behavior of Microsoft Excel. See Behavior difference between Workbook_Open and Auto_Open procedure.
Note: You can use wildcard pattern
based search to open an existing excel file that matches the search criteria. For
example, if you have multiple files with similar names such as
table1.xlsx, table2.xlsx,
table3.xlsx, you can open the file by specifying the (*)
wildcards in the file path as table*.xlsx to open the first
file that matches the pattern.