Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to copy my range names to another open workbook. I've been looking at the script below but can't figure out how to get it to copy the range names from the first (LOldWb) workbook to the second (LNewWb) workbook. Thanks, Louis ------------------------- 'Define old and new workbooks Workbooks.Open Filename:=UserForm1.TextBox1.Value LOldWb = ActiveWorkbook.Name Workbooks.Add LNewWb = ActiveWorkbook.Name 'Loop to copy range names from old to new workbooks For Each x In LOldWb.Names Workbooks(LNewWb).Names.Add Name:=x.Name, _ RefersTo:=x.Value Next x |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defined Names in Formulas when copying Worksheets in a Workbook | Excel Discussion (Misc queries) | |||
COPYING FORMULA CONTAINING NAMES/RELATIVE RANGE NAMES | Excel Discussion (Misc queries) | |||
Copying A Worksheet From Each Open Workbook to an new Workbook | Excel Worksheet Functions | |||
Copying Range Names and values from one tab to another | Excel Programming | |||
Copying Worksheet to Another Open Workbook | Excel Programming |