tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi,
I nearly have this working. I want sheet 12 (called Journal) to be copied and saved into a new macro-enabled workbook. It's getting stuck at the save part, saying "The following features cannot be saved in macro-free workbooks: VB project"
Can someone please tell me where I am going wrong? Thanks!
I nearly have this working. I want sheet 12 (called Journal) to be copied and saved into a new macro-enabled workbook. It's getting stuck at the save part, saying "The following features cannot be saved in macro-free workbooks: VB project"
Code:
Sub New_Journal()
Dim wb As Workbook
Set wb = Workbooks.Add
ThisWorkbook.Sheets("Journal").Copy Before:=wb.Sheets(1)
wb.SaveAs "C:\Users\Andrew\Documents\JournalNEW.xlsm"
End Sub
Can someone please tell me where I am going wrong? Thanks!