braindiesel
Well-known Member
- Joined
- Mar 16, 2009
- Messages
- 571
- Office Version
- 365
- 2019
- 2010
- Platform
- Windows
As the subject says, I want to name a range with a workbook scope.
Here is a sample of the code
Selection.Resize(25, 12).Select
actualrange = Selection.Address
ActiveWorkbook.Names.Add Name:="actualSales1", RefersTo:=Sheets("Simply Actual").Range(actualrange)
This is setting the range name to the sheet. How can I change the scope with VBA?
Your help is greatly appreciated,
Glen
Here is a sample of the code
Selection.Resize(25, 12).Select
actualrange = Selection.Address
ActiveWorkbook.Names.Add Name:="actualSales1", RefersTo:=Sheets("Simply Actual").Range(actualrange)
This is setting the range name to the sheet. How can I change the scope with VBA?
Your help is greatly appreciated,
Glen