


Open an Excel Workbook from your start menu or type Excel in your run command.You can follow the below steps to execute the macro to Delete and paste a range using VBA. VBA to Delete Range in Excel – Execution Instructions Here we are deleting the columns of the range “B2:D10”, ie. In this example, we are deleting the entire column(s). Here is the simple example to Delete a range in excel using VBA. VBA to Delete Range in Excel – Example: EntireColumn Here we are deleting the rows of the range “B2:D10”, ie. In this example, we are deleting the entire row(s). VBA to Delete Range in Excel – Example: EntireRow In this example, we are deleting the range and shifting the cells towards up. Here is the Excel VBA macro to Delete a range. VBA to Delete Range in Excel – Example:Shift:=xlToUp In this example, we are deleting the range and shifting the cells left side. Range(“YourRange”).EntireColumn.Delete VBA to Delete Range in Excel – Example:Shift:=xlToLeft

The below syntax will delete the entire row of the selected range:Īnd the below syntax will delete the entire column of the selected range:
