Lefemmenikita
Board Regular
- Joined
- Jan 28, 2014
- Messages
- 59
- Office Version
- 2013
- Platform
- Windows
Hi
I have a workbook template ('master workbook') where I want to create new workbook from using one of Master workbook's worksheets.
i.e. right clicking the tab called 'summary'(in Master workbook)> move or copy worksheet> create new workbook:
I want to save the newly created workbook in the same place as the original workbook(('Master Workbook') from which it originated using a macro.
Is there a variation of this code which I can use so that it points to wherever the Master workbook is saved, and save the newly created workbook in the same location?
Thanks
I have a workbook template ('master workbook') where I want to create new workbook from using one of Master workbook's worksheets.
i.e. right clicking the tab called 'summary'(in Master workbook)> move or copy worksheet> create new workbook:

I want to save the newly created workbook in the same place as the original workbook(('Master Workbook') from which it originated using a macro.
Is there a variation of this code which I can use so that it points to wherever the Master workbook is saved, and save the newly created workbook in the same location?
Code:
Dim Masterwb As Workbook
Dim folderpath As String
folderpath = Application.[B]ActiveWorkbook[/B].Path
Thanks