To Add Excel VBA Code to a Workbook / This Workbook Module
- Copy the code that you want to use
- Select the workbook in which you want to store the code
- Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
- In the Project Explorer, find your workbook, and open the list of Microsoft Excel Objects
- Right-click on the ThisWorkbook object, and choose View Code
- Where the cursor is flashing, choose Edit | Paste
Change the Sheet1 to your desired sheet name / A5:A15 to your desired range and 35 to your desired row height
Bookmarks