I have 4 macros that are tailored to import data depending on the file type.
1. Imports htm files
2. Imports Txt files
3. Imports CSV files
4. Imports DBF files
What I would like to do is allow users to select which type of file is being imported so that the correct import macro is automatically run.
For example:
User input ---> FileType = InputBox("Enter File Type", "File Type", "htm")
If filetype = text then
call Import_Txt
If filetype = htm then
Call Import_htm
If filetype = csv then
Call Import_csv
If filetype = dbf then
Call Import_dbf
I only need the correct macro to run.
Any assistance would be appreciated.
Bookmarks