Macros & Excel VBA

How to Send an Email with Body from Excel Using a Macro – Easy Steps

Step 1 - Set the Object Reference to Microsoft Outlook Go to the Developer tab on the Ribbon. Click Visual Basic. In the visual ...

How to Open All Excel Files in a Folder and Copy Data from Them: 5 Method Analysis

⧪ Method 1 - Setting Up the Environment Set some necessary parameters to the required values to set up an environment for running the code ...

How to Use Excel Macro to Send Email Automatically (3 Examples)

Complete the following steps before applying a macro to send email automatically. STEPS: From your dataset, go to the Developer tab. Select ...

How to Open a Word Document and Save it As PDF or Docx with VBA in Excel – 2 Examples

Consider the following image of a word file. The file “Student Information” is stored at C:\ExcelDemy\. Use a VBA code to open it and then ...

Excel VBA: Unprotect Workbook with Password: 7 Practical Methods

Method 1 - Unprotect a Single Workbook with a Password in Excel VBA Task: Unprotect the workbook named workbook_1.xlsx inside the Exceldemy folder ...

Macro to Convert Excel to Pipe Delimited Text File (3 Methods)

We have the following dataset. The contents of the dataset are relatively irrelevant to the code we'll use. Method 1 - Macro to Transfer ...

How to Protect Specific Columns Using VBA in Excel

The dataset showcases students' marks in different subjects. Steps: Go to the Developer tab and click Visual Basic. Click Insert ...

How to Unprotect All Sheets in Excel Using VBA (4 Examples)

Below is a dataset with four protected worksheets representing sale details for the first four months of the year. We cannot change any data on the ...

Excel VBA: Read a Text File Line by Line (6 Related Examples)

To demonstrate our examples, we'll use the following text file saved in the Desktop folder. Example 1 - Read First Line of a Text File ...

How to Apply a Macro to Send an Email from Excel with Attachment

VBA Code to Send Email from Excel with Attachment (Quick View) Sub Send_Email_with_Attachment() Dim MyOutlook As Object Set MyOutlook = ...

Excel VBA: Unprotect a Workbook without using a Password – 2 Examples

The sample workbook is protected with a password. Example 1 - Copy the workbook to a New File to Unprotect it Using VBA Steps: The ...

VBA Code to Convert Text File to Excel (7 Methods)

The sample Text file named “Test File” contains random lines and Line breaks. We will learn how to convert this text file to a new Excel file with ...

How to Calculate Time Difference in Excel VBA (2 Methods)

Excel VBA Code to Calculate Time Difference (Quick View) Sub Time_Difference_by_Direct_Substitution() Time1 = CDate("6:03:59 AM") Time2 = ...

How to Unprotect Excel Sheet with Password Using VBA: 3 Quick Methods

Method 1 - Perform a VBA Code to Unprotect Single Excel Sheet with Password in Excel Step 1: Open a Module, to do that, firstly, from your ...

How to Create a Simple Database in Excel VBA

Watch Video – Create a Simple Database in Excel VBA The sample data set below contains the names, joining dates, and salaries of ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo