Working With Files, Folders & Text Files: What You Learn
Working With Files, Folders & Text Files: What You Learn
DIR Check if File or Folder Exists ● Use the DIR function to check if a file or path exists
- DIR Function ● Create a new Folder (directory)
SelectFile User Selects a File - Allow the user to pick a file from Excel's file open dialog box.
GetOpenFileName Method The macro shows how to copy a specific range and import to
this workbook.
SelectFolder Loop Inside a Folder - Allow the user to pick a folder from Excel's file open dialog box.
FileDialog Property The macro shows how to loop through each file inside the
folder.
CSV Create CSV Files from Data How to save files as CSV by using Excel's SaveAs method
in Excel
Text Working with Text Files How to interact with Text files
Activity Export Data to a Text File How to create a text file with your own set delimiter
(and set your own (independent of the regional settings)
delimiter)
Check if File or Folder Exists - DIR Function
Note: In the sales reporting tool, you will learn how to use MultiSelect to import data from many files at once.