INTRODUCTION: Range Is Used To Define The Start And End Point For A Particular Selection Of Cells. Examples “A1:A5” or “A1” Etc…
- Open Excel File
- Click Alt + F11
- One Dialog Screen Will Get Open
- Click Insert And Add Module
- Create Sub Procedure
- Make Sure The Procedure Name Start With String And Without Space.
- Write The Code In Between Sub And Sub End
- Click Run Button
- By Clicking The Range Data Will Get Select And All Data Will Be Deleted Automatically.
- For Only Content Deletion Use Range(“a1:a5”).ClearContents
- To Clear All Like Formatting – Data -Etc. Use Range(“a1:a5”).Clear
- That’s It 🙂
- Please Check The Images And Video For More Info.