
Learn to use VBA file system functions to check folder and file existence, create or delete directories, and change and report the current path.
Master VBA data structures: fixed and dynamic arrays, one-dimensional, two-dimensional, and three-dimensional arrays; learn dictionary key-value pairs and basic array printing.
Learn the essential VBA file-writing functions, including FreeFile, open, BOF/EOF navigation, lock and load, and LOF for managing bytes when reading and writing files.
Learn how to use a string builder to append text and create long strings more efficiently, compare with regular strings using a micro timer, and observe performance gains.
Examine the Application object as the top-level object, learn to access recently opened files, default file paths, library and language settings, and locate the current workbook and its windows.
Open a text file in VBA, check for its existence, and write text data before closing the file, using print functions and streams.
Learn how to modify a text file in VBA using the find and replace function. Open the file for reading, replace targeted strings, and write the updated text back.
Learn to load a text file into a VBA array by splitting lines and semicolon-delimited fields, then populate a worksheet with the resulting data.
Learn method 2: a simple VBA routine to read a binary file using a read function, manage a byte buffer and buffer size, loop until end, and print each buffer.
Learn to read binary data in VBA and import it into Excel by opening a binary file, reading bytes, and saving results to a worksheet.
Learn to read and write binary files in VBA by identifying headers and records, applying read/write routines, and using binary lock to allow safe multi-user access.
Convert csv to excel with vba demonstrates connecting to a data source, using a provider, and querying a recordset to retrieve Sacramento records and associated zip codes.
Learn to export Excel worksheets (including two worksheets) to PDF using VBA, specifying the file name, sheet selection, and export options such as include properties and open after publish.
Use VBA to load html in a web browser control, select the default printer, and print or convert files to pdf.
Learn to automate and connect Microsoft Office applications with VBA by exporting data from Excel to Word, creating documents from rows, and using bookmarks and arrays to populate content.
Copy a specified Excel range (A1:H10) into a PowerPoint slide with VBA, handling errors and creating or opening PowerPoint. Paste as a metafile and position the shape.
Learn how to use VBA to copy charts or ranges from Excel and paste them into Word, including selecting the range and pasting the chart in a Word document.
Control PowerPoint from Access using VBA by creating the PowerPoint application object. Add a rectangle shape to the active slide and customize its position and fill.
Learn to automate Excel from PowerPoint with VBA by creating an Excel application object, making it visible, opening a workbook, writing to range 8, and running the process from PowerPoint.
Learn to copy text from a Word document into Excel using VBA by opening Word, reading the document range, and inserting the text without saving.
Learn how to control Excel from Word using VBA, set up the developer tools and Excel object library, and automate copying data from Excel to Word across sheets.
Use VBA to export an Access table to Excel, setting the table name and worksheet, and use the transfer spreadsheet action to move data into an Excel file.
Use VBA to connect to an Access database with Active X objects, run a select query, and copy the recordset into an Excel worksheet.
Master VBA techniques to import an Excel ListObject into Access with VBA, using a loop, a recordset, and string construction to transfer and insert data into an Access table.
Learn how to verify file or folder existence in Excel VBA by using a path string and basic checks with the file system object and the directory function.
Learn how to move folders in Excel VBA using the FileSystemObject's MoveFolder method, relocating entire folder structures to a destination while preserving tests and structure.
Learn how to use the dir function to list files and folders, distinguish them, and access attributes like path, date modified, and size with the file system object.
Learn to loop through immediate subfolders of a path in VBA, identify directories, print them with an index, and handle end-of-list while exploring first-level and second-level folders.
Iterate though all the files present at a location. (No need to list files under subfolders)
Learn to list all files in the current location and its subfolders using a VBA routine, build arrays of subfolders, and recursively print or collect absolute paths.
Master the path separator in VBA to build full or absolute folder paths, and use Excel's path separator property to adapt to Mac or PC.
Learn to locate and retrieve all Excel files in a directory using wildcards, then loop through each workbook and its worksheets, printing sheet names and accessing workbook properties.
Explore using the VBA file system object to locate files with GetFile, access absolute paths, and retrieve properties such as last modified date and file name for simple file management.
Learn to use the File System object and its create folder method in VBA to construct a folder path, create folders within a tree, and manage simple folder updates.
Learn how to copy all Excel files from one folder to another using VBA. Extract extensions with the left function, filter by Excel extensions, and create destination folders when needed.
Organize files by type using a VBA workflow that loops through a folder, creates subfolders named after file types, and copies each file to its corresponding type folder for access.
Learn to read and write csv files using the FileSystemObject in VBA by manipulating text files, accessing workbook worksheets, using used range, and saving and opening files.
Write to binary files using FileSystemObject in VBA by opening a file as a text stream, reading lines to the end, and joining the array to access binary data.
Learn to rename, move, and copy files using VBA's native file manipulation functions, with practical examples that demonstrate renaming test to test x 10, and copying and moving between directories.
Explore the file system object in VBA to manage files and directories, using methods like change directory, change drive, current directory, and dir.
Learn how to use the Excel VBA file dialog box to open or save files, select folders or multiple files, and apply filters and patterns to control what appears.
Learn how the save as dialog in VBA saves a file by selecting the file name and location. The lecture shows applying filters, like text files, during saving.
In this course you will learn how to manage files and how to exchange data between files and between different Microsoft Office applications using VBA.
We will start giving some fundamental information e.g.
VBA files and folder functions
VBA files and folder attributes
VBA data structures
VBA types
Advanced Data Structures in VBA
VBA - Strings
VBA - Date and Time
VBA - Arrays
VBA Excel Objects
VBA Classes
VBA files
Functions needed to write files in VBA
The StringBuilder class
Some important information from the Application object (RecentFiles, defaultPath)
This information is the basis to continue in this course.
In details we will then learn:
VBA and text files: how to read and write to text files, how to modify a text file, how to append text to an existing text file, how to load an Array variable with data from a delimited text file. We will also see how to read and write to CSV files in VBA
VBA and binary files: how to read and write to binary files, how to read from binary file and import into Excel, how to create a Binary File from Text File and Read to Excel, how to append to binary file
File Converters in VBA: VBA – Convert File Formats, how to convert CSV to Excel with VBA, how to convert Excel to CSV with VBA, Excel to PDF exporter, how to convert html to text file, how to convert text file into excel, how to convert html to PDF
Connect MS Office applications: Controlling One Microsoft Office Application from Another, copy data from Excel to Powerpoint, activating Other Applications with Excel VBA, Using VBA to Paste from Excel to Word and PowerPoint, Controlling Powerpoint and Word from Excel using VBA, Export the text of a presentation to a CSV/Excel file, export Word tables to Excel sheets, Import/Export to Access from Excel, update Access with Excel data with VBA
Folders and File Handling in Excel VBA: Check if Folder Exists, opening, moving, deleting and creating folders using VBA Excel, making File Read Only in VBA Excel, copy all Excel Files from One Folder to Another in VBA Excel
dir function: iterate though all the folders inside a path (immediate child folders only), iterate though all the files present at a location. (No need to list files under subfolders), list all the files inside a current location and its subfolder, search files
Excel VBA File Management Using The FileSytemObject
All the methods, copy Files With a Specific File Type, copy All Excel File Type, organize Files Based on File Type, organize Files Based on File Name, retrieve file information, read and write from/to text and binary files using FileSystemObject in VBA, rename, move and copy files, delete a file
File Dialog: Opening /Saving Files Using File Dialog Box in Excel VBA, customize File or Folder Dialog Box in VBA Excel, filters of Dialogs, the Dialogs collection, the Dialog object
OneDrive and VBA: What is OneDrive, Excel's fullname property with OneDrive, VBA download a File from OneDrive, SaveAs in OneDrive
Macros disabled when opening workbooks in OneDrive, Select a Workbook from OneDrive, How do I open files saved in Microsoft Onedrive using vba
VBA and JSON files: JSON file data into a VBA Dictionary, The JSON VBA libraries already available and ready to use
Import/Export JSON to/from Excel, export Excel to Nested JSON
VBA and XML files: reading an XML file with XPath in VBA, save to XML file, reading XML file in VBA ((XML structure, XML DOM nodes, XML file)
VBA and HTML files: reading an HTML file, create HTML Tables with Excel VBA, export Excel to HTML, reating HTML using a Builder Pattern from Excel Table in VBA, using Excel Cell StyleElements to Style HTML Document
ADODB Stream: ADODB Streams to read and write files, convert ADODB binary stream to string vba, Save and read Binary and Text Data, use the ADO recordset, record and stream objects to open documents
VBA and String Encoding: Unicode Strings and the Windows API, save text file UTF8 without BOM encoded, read/write UTF-8 files with VBA, Convert UTF-8 to ANSI , ANSI-String in UTF8-Format, ISO-Text in UTF8-Format, ISO-8859-1 String encoding, VBA XML and encoding, write to UTF-8 text file with Excel VBA
Remote files and VBA: WinHttpRequest (XMLHTTP, ServerXMLHTTP) and remote files
Data Migration: Data Import/Export in Excel, automation to transfer data cell by cell, to Transfer an Array of Data to a Range in a Worksheet, to transfer an ADO Recordset to a Worksheet Area, to create a Query Table in a Worksheet, use the Clipboard to transfer data in VBA, transferring data to a worksheet with ADO, import text file into Excel with Querytables
Manage compressed files in VBA: compress a file, unzip File Through Excel VBA Code, create a zip file from a folder, Unzip a zip file to a folder, create Zip Files with VBA using 7-Zip, create a ZIP archive with the Windows Shell, zip and encrypt a directory from VBA, save excel file to zip file, compress/extract files with WinRar
FTP and VBA for file exchange with remote servers: use FTP in VBA, Download / Upload File using VBA and FTP, Asynchronous File Downloads using VBA, alternative methods to Upload file via FTP from Excel VBA, FTP a text file to a server using VBA in Excel, use VBA to export CSV from webpage