HWL
Active Member
- Joined
- Dec 1, 2009
- Messages
- 462
Okay this one is annoying.
I have a call to another macro but I can't seem to reference a workbook in the second macro.
In the first macro I have:
Set Newbook = Workbooks.Add
ThisWorkbook.Sheets(1).Range("R18") = Newbook.Name
In the second macro I have:
Set Newbook = Workbooks(ThisWorkbook.Sheets(1).Range("R18"))
I even tried
Set Newbook = ActiveWorkbook.FullName
But had an error about not having an object.
grrrrrrrrrrrr This one should be simple.
What am I doing wrong that I can refer to this new workbook in the second macro?
I have a call to another macro but I can't seem to reference a workbook in the second macro.
In the first macro I have:
Set Newbook = Workbooks.Add
ThisWorkbook.Sheets(1).Range("R18") = Newbook.Name
In the second macro I have:
Set Newbook = Workbooks(ThisWorkbook.Sheets(1).Range("R18"))
I even tried
Set Newbook = ActiveWorkbook.FullName
But had an error about not having an object.
grrrrrrrrrrrr This one should be simple.
What am I doing wrong that I can refer to this new workbook in the second macro?