Macros & Excel VBA

How to Paste From Clipboard to Excel Using VBA

If you cut or copy any text or image, it will be saved in the clipboard first. After that, you can paste the text or image anywhere such as in Word ...

How to Copy Sheet to End in Excel Using VBA (6 Methods)

Excel VBA is a strong tool to achieve any criteria-driven outcome. Some instances like Excel VBA copy sheet to end or anywhere in a workbook are very ...

How to Filter and Delete Rows with VBA in Excel – 2 Methods

  The sample dataset showcases Salesman, Product, and Net Sales of a company. Method 1 - Filtering the Visible Rows and Deleting ...

Excel VBA to Copy Rows to Another Worksheet Based on Criteria

Copying data, based on criteria, from one sheet to another is one of the frequently done tasks in Excel. If you have a lot of rows and want to copy ...

How to Use VBA PasteSpecial for Formulas and Formats in Excel

While dealing with a large Microsoft Excel dataset, sometimes we need to use the PasteSpecial command in Excel. We also can do that by applying VBA ...

Excel VBA: Copy Worksheet to Another Workbook Without Opening

We'll use the following source file "Source", saved in the .xlsm format. We'll use VBA code to copy a worksheet named "Dataset" to another workbook. ...

Excel VBA to Copy Only Values to Destination (Macro, UDF, and UserForm)

While working with VBA in Excel, we often need to copy only values from a range of cells to a destination range. In this article, I’ll show you how ...

Macro to Copy Specific Columns from One Worksheet to Another in Excel (6 Methods)

Method 1 - Copy selected Columns from One Worksheet to Another Using Macro The sample dataset contains some information about the employees of a ...

How to Use Excel VBA to Paste Range into Email Body (3 Methods)

If you are working with an Excel worksheet that you need to update and share with other people via email on a frequent basis, VBA macro in Excel can ...

How to Autofilter and Copy Visible Rows with Excel VBA

The dataset below has 5 columns displaying a Site's name, Category, Date, Platform, and Number of Visits for each site. Method 1 – AutoFilter ...

Run Time Error 1004: PasteSpecial Method of Range Class Failed

One of the most common problems that we encounter while working with copying and pasting in Excel VBA is the run time error 1004: PasteSpecial Method ...

How to Concatenate String and Variable in Excel VBA (A Detailed Analysis)

While working with VBA in Excel, we often have to concatenate string (s) and variable (s) in a worksheet. Concatenating string (s) and variable (s) ...

How to Convert String to Number in Excel VBA (3 Methods)

Method 1 - Convert String to Number Using Type Conversion Functions Excel provides several built-in type conversion functions. We can use them in ...

How to Convert String to Double in Excel VBA (5 Methods)

String and Double are two major data types used in VBA. Often you may need to convert the string to double. In this article, I’ll show you 5 methods ...

Calculate Percentage in Excel VBA (Involving Macro, UDF, and UserForm)

While working with VBA in Excel, we often have to calculate the percentage of a value with respect to another value. Calculating percentages is ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo