Vba Add Worksheet To Current Workbook. This tutorial explains how to add new work sheets using Worksheets. You can call this method with several parameters which affords you quite a bit of control, or you can call it with no parameters, and accept the defaults.
I managed to hack together the code below by recording myself and Googling the rest as I needed to save several workbooks from the one and automatically add the date. Activate 'do whatever you need ws. I'm working on small project in which I need to add sheets to the currently open workbook from any external database of worksheets in another workbook.
Create a hyperlink to current worksheet sh in active cell.
Add using the macro code from this page.
This document, titled « Adding a Sheet to a Workbook Using VBA », is available under the Creative Commons license. Most people like me and you are not real Microsoft Office gurus. Learn how to copy data from one workbook to another using VBA macros in Excel, includes copying below Copy Data from One Workbook to Another Using Excel Macros.