MEUserII
Board Regular
- Joined
- Oct 27, 2017
- Messages
- 91
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- Platform
- Windows
I am trying to figure out if there is a VBA command/VBA Macro in Excel that from an opened Excel file will retrieve the "file format enumeration information" of the Excel file opened? Specifically, retrieve the following file format enumeration information: file format enumeration name, file format enumeration value, file format enumeration description, and file format enumeration extension?
For reference, I have linked the list of "file format enumerations" from Microsoft identifying the Excel: file format enumeration names, file format enumeration values, file format enumeration descriptions, and file format enumeration extensions:
Link: https://docs.microsoft.com/en-us/office/vba/api/Excel.XlFileFormat
For reference, I have listed below examples for what the retrieved file format enumeration information should be:
Opening the Excel file "TEST1.xls" retrieves the following information:
File Format Enumeration Name: xlExcel9795
File Format Enumeration Value: 43
File Format Enumeration Description: Excel version 95 and 97
File Format Enumeration Extension: *.xls
Opening the Excel file "TEST2.csv" retrieves the following information:
File Format Enumeration Name: xlCSVWindows
File Format Enumeration Value: 23
File Format Enumeration Description: Windows CSV
File Format Enumeration Extension: *.csv
Opening the Excel file "TEST3.xlsx" retrieves the following information:
File Format Enumeration Name: xlWorkbookDefault
File Format Enumeration Value: 51
File Format Enumeration Description: Workbook default
File Format Enumeration Extension: *.xlsx VBA Fuinction/VBA Command to Retrieve File Format Enumeration Information?
For reference, I have linked the list of "file format enumerations" from Microsoft identifying the Excel: file format enumeration names, file format enumeration values, file format enumeration descriptions, and file format enumeration extensions:
Link: https://docs.microsoft.com/en-us/office/vba/api/Excel.XlFileFormat
For reference, I have listed below examples for what the retrieved file format enumeration information should be:
Opening the Excel file "TEST1.xls" retrieves the following information:
File Format Enumeration Name: xlExcel9795
File Format Enumeration Value: 43
File Format Enumeration Description: Excel version 95 and 97
File Format Enumeration Extension: *.xls
Opening the Excel file "TEST2.csv" retrieves the following information:
File Format Enumeration Name: xlCSVWindows
File Format Enumeration Value: 23
File Format Enumeration Description: Windows CSV
File Format Enumeration Extension: *.csv
Opening the Excel file "TEST3.xlsx" retrieves the following information:
File Format Enumeration Name: xlWorkbookDefault
File Format Enumeration Value: 51
File Format Enumeration Description: Workbook default
File Format Enumeration Extension: *.xlsx VBA Fuinction/VBA Command to Retrieve File Format Enumeration Information?