
Learn to use VBA to manage files and folders across Excel, Word, PowerPoint, and Access, including text and binary file handling, data exchange, and cloud storage with remote server transfers.
Discover the VBA course structure for managing files and connecting to MS Office apps, covering file operations, file dialogs, text and binary files, and data import export.
Learn to use VBA file system functions to check folder and file existence, create or delete directories, and change and report the current path.
Learn to use VBA GetAttr and SetAttr to read and change file and folder attributes, such as normal, read-only, hidden, system, volume, directory, and archive, and loop to enumerate folders.
Explore VBA data structures, declare types like string, integer, long, and single, and understand public versus private scopes and array usage.
Learn how to define and use VBA types, including strings, date, long, double, and single, and build a user defined type to store employee records from scratch.
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.
Explore VBA strings: learn to work with character sequences, extract substrings from a given position using left and right, and manage spaces on both sides to clean data.
Master VBA date and time handling by using date/time data types, formatting, and functions to get day, month, year, and compute differences between dates within Excel VBA.
Learn to create and resize arrays in VBA, using redim and preserve to keep data when expanding. Populate and loop through arrays, and manage lower and upper bounds for counts.
Explore VBA Excel objects, including application, workbook, and worksheet objects, and how to reference workbooks and sheets by name or number, activate worksheets, and work with ranges and cells.
Explore how to create and use VBA classes, declare objects, and define properties and methods, including an example of a balance class with deposit and withdraw and initialization.
Learn to write data to files in VBA using open and access modes (input, output, append, random, binary), define records with type structures, and read or write in office applications.
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.
Learn how to use text files in VBA to read and store information, write data with open and the output method, and print lines while handling configurations and simple databases.
Learn to read a text file in VBA, line by line or as a whole, by opening for input, reading with line, and printing or closing the file.
Learn VBA to import data from multiple text files into Excel by creating a workbook per folder, reading each line, and populating cells across worksheets.
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 how to append text to a text file in VBA, opening files, writing lines, and adding space at the bottom to manage content in MS Office applications.
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 how to read CSV and text files in VBA using recordset and query table methods, handling delimiters like semicolon or comma, and load data into Excel.
Learn to write csv files in vba while managing workbooks, moving and copying the active sheet between workbooks, and saving changes.
Learn how to work with binary files in VBA, including when to use binary access, open by name for binary, and storing non-string data with defined types for structured records.
Learn to read binary files in VBA by opening the first available free file number for binary access, reading integers, and writing bytes into cells row by row.
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.
Use VBA to read a text file and save its contents into Excel, leveraging the application object and a file dialog to import text into the active sheet.
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.
Learn how to write to a binary file in VBA by defining a simple record with integers and strings, then append and seek to save data at the correct position.
Learn how to append data to a binary file by seeking to a position, writing at the end, and then reopening for binary read with simple examples.
Learn how to convert Excel files to different formats using VBA, including save as, managing extensions, and handling workbooks and errors.
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 an Excel list object to CSV with VBA by copying the active sheet to a new workbook, pasting from cell A1, and saving under the table name.
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.
Learn how to convert html to a text file with VBA by importing the first web table, processing data into an array, and exporting with tab separators.
Learn how to convert a spreadsheet to a text file using a VBA routine, remove commas, parse the file name and extension, select columns, and export data from Excel.
Learn two VBA methods to input a text file into Excel: read lines into rows, or split lines by a tab into fields.
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.
Automate copying data from Excel to PowerPoint using VBA, including opening presentations, selecting slides, copying ranges as shapes, and saving new PowerPoint files.
Learn to copy an Excel chart into a PowerPoint slide as a picture by opening the presentation, selecting the chart, copying it, and pasting with proper alignment.
Activate other Office applications from Excel VBA using late binding to transfer data from Access by creating or getting PowerPoint and Word applications, and use library references for early binding.
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.
Use VBA to select charts in the active sheet, copy them as pictures, and paste into PowerPoint slides, then set the chart title as the slide title using shape placeholders.
Learn to export Excel dashboards to PowerPoint using VBA, copying defined ranges as pictures. Paste onto slides, creating or opening presentations, and automating slide titles and dates.
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.
Export and import table data from PowerPoint slides into Access using VBA by iterating slides, detecting table shapes, reading cells, and populating Access tables.
Export the text from a PowerPoint presentation to a CSV/Excel file by iterating over slides and shapes, extracting text frames and tables, and writing structured rows per slide.
Learn to export word tables to excel sheets using VBA, counting and importing Word document tables into an Excel worksheet, then clean and align text data for a polished result.
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 use VBA with late binding to copy text from multiple Word documents into Excel, looping through files in a folder, extracting content, and pasting into a worksheet.
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 Excel VBA to control Word from Excel, running a macro to create a new Word document template and automate Word via the Word application object.
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.
Learn to export Access appointment data to an Excel template using VBA by opening the template, copying a recordset to a defined range, and saving as a new workbook.
Connect to an Access database using Excel VBA and run a query on the orders table. Import the resulting recordset into a worksheet and copy relevant fields while managing memory.
Export Excel data to a table in an Access database using VBA. Create an Access application object, define table columns, and transfer the worksheet range to the table.
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 update an Access database from Excel data using VBA by deleting records, creating a connection and recordset, and updating values based on column 2.
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 to open folders from Excel using VBA by checking for existence, showing a no file message when missing, and launching Windows Explorer via the Shell function.
Learn to use Excel VBA to manage files by checking whether a folder exists and creating it with a name from a string.
Copy folders and files in Excel VBA by moving content from a source to a destination, with existence checks and a for loop to copy everything.
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 to delete a folder in VBA Excel using the scripting.fileSystemObject: check if the directory exists, call DeleteFolder, and verify success or handle a folder not found.
Use VBA to set a file's read-only attribute in Excel by using a FileSystemObject. Learn early binding and late binding approaches to apply and verify the read-only state.
Copy all Excel files from a source folder to a destination folder using the File System object with late binding, with folder existence checks.
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.
Explore a VBA routine to search files in a directory using the dir function, handle OS-specific path separators, and iterate through files until end to collect matches.
Learn how to search for files across multiple subfolders in VBA using the DIR function, storing results in a collection and iterating through folders.
Explore a VBA recursive directory approach that searches a root folder and all subdirectories, collects files by pattern, and returns a populated collection of matching files.
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.
Explain how to use a function to get a path, differentiate similar functions, remember that the dollar indicates a string in VBA, and visit the COM website for programming solutions.
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.
Learn to use the VBA dir function to retrieve subdirectories, build and split a delimited list, and loop through folders for file management in MS Office applications.
Discover how the VBA file system object provides access to file and drive information, using the Microsoft script runtime reference library and initializing the object as a class.
Explore the file system object's properties and get methods to retrieve a file's name, basename, and absolute path, demonstrated with workbook paths and drive information.
learn to use a file system object in VBA to access drive c, check freespace, convert bytes to terabytes, and report drive space.
Learn to use the GetFolder method on a file system object in VBA to retrieve a folder from a path, count files, and verify folder contents across Word cases.
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 use the VBA CopyFile method to copy a document from a source path to a destination path. Verify the copy appears in the target folder.
Delete a file in VBA within a test folder and verify the file is no longer present in the directory.
Learn how to move files with VBA, using the find method to transfer a file to a destination while removing it from the source, avoiding duplicates.
Learn how to use a file system object in VBA to check whether a folder exists and create it if needed, integrating folder operations with MS Office workflows.
Explore how to use the file system object's folder exists method to verify if a file or folder exists in VBA, then perform move or copy operations accordingly.
Learn to copy Excel files by type using VBA, setting source and destination directories, filtering by the given extension, and copying matching files to a target folder.
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.
Organize files in a directory by creating folders from the first three characters of each file name, then create monthly subfolders and copy files into them.
Learn to retrieve file information from a folder with VBA, listing detailed properties like name, type, and dates, and handling Word, Excel, and PowerPoint documents.
Learn how to use VBA and external libraries to retrieve media file properties, including artist, album, title, track, and size, from a directory and export them to an Excel worksheet.
Discover how to retrieve media properties in VBA, such as size and duration, by looping through files, listing properties, and preparing for copying to a destination.
Use the FileSystemObject in VBA to read text files, check existence, read all content, close and release the object, and verify the file's contents.
Learn how to create and write to a text file using the FileSystemObject in VBA, including specifying the path, writing lines, and closing the file.
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 write binary data with FileSystemObject in VBA, by creating text files with byte content, and understand the limitations of using text files for binary data.
Learn to manipulate local files with VBA by creating category folders, selecting and copying files to structured destinations, and using the file system object to organize your folder structure.
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 to list file attributes in VBA by scanning folders and subfolders, retrieving last access, last modified, created times, type, size, owner, author, title, and comments, then populate a workbook.
Learn how to delete files in VBA using the kill function, including checking file existence, handling a temporary folder, and moving files to the recycle bin or trash.
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.
Explore how to customize the file or folder dialog in VBA for Excel, including multi-select, filters, and file type settings to improve user interaction and workflow with MS Office applications.
Learn how to use Excel VBA file dialog boxes to display, pick files or folders, and trigger open and save operations, while handling user selections.
Explore how to use VBA's GetOpenFilename to open file dialogs, specify filters, enable multi-select, set titles and button text, and handle returned file paths for Office integrations.
Explore how to create a new workbook or file within a Microsoft Office application to establish a unifying theme, and organize documents and PowerPoint slides for VBA workflows.
Implement a save file dialog in VBA to interact with MS Office, using the MSO file dialog Save As, handling file selection, and demonstrating the save workflow.
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.
Learn how to use VBA file dialog filters to restrict displayed files by type, create and manage multiple filters, and handle opening matched files in Excel workbooks.
Explore the VBA dialogs collection, a set of prebuilt dialog boxes you can modify and display with the Show method, including dialogs to send an e-mail.
Explore the VBA dialog object and its dialogue collection, learn how to open files using the dialog, and understand application scope and file access permissions.
Discover how to manage files and connect MS Office apps with VBA by configuring the Excel default font and save format 51, handling workbooks, templates, recent files, and file dialogs.
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