Created
April 15, 2014 16:02
-
-
Save agbishara/10743965 to your computer and use it in GitHub Desktop.
Function to Create a new workbook in Excell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function CreateWorkbook(Path As String) As Workbook | |
| Dim Tempbook As Workbook | |
| Set Tempbook = Workbooks.Add(ThisWorkbook.Path & "\template.xlsx") | |
| Application.DisplayAlerts = False | |
| Tempbook.SaveAs Filename:=Path | |
| Application.DisplayAlerts = True | |
| Set CreateWorkbook = Tempbook | |
| End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment