Created
April 15, 2014 16:06
-
-
Save agbishara/10744234 to your computer and use it in GitHub Desktop.
Create a workbook at a path
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