I have two workbooks. Workbook_A is a "shell" with the following named ranges and definitions:
Name: Parameter_1, Refers To: Sheet1!$A$11
Name: Parameter_2, Refers To: Sheet1!$A$12
Name: Parameter_3, Refers To: Sheet1!$A$13
Workbook_B - which was originally based on the shell - has the following named ranges and definitions:
Name: Parameter_1, Refers To: Sheet1!$A$11
Name: Parameter_2, Refers To: Sheet1!$A$12
Name: Parameter_3, Refers To: Sheet1!$A$13
Name: Parameter_4, Refers To: Sheet1!$A$14
Name: Parameter_5, Refers To: Sheet1!$A$15
I am trying to write a macro that will copy the contents and formats of the named ranges - as well as the named range definitions - from Workbook_B to Workbook_A. That is, when the macro is done running, Workbook_A will have the following named ranges and definitions:
Name: Parameter_1, Refers To: Sheet1!$A$11
Name: Parameter_2, Refers To: Sheet1!$A$12
Name: Parameter_3, Refers To: Sheet1!$A$13
Name: Parameter_4, Refers To: Sheet1!$A$14
Name: Parameter_5, Refers To: Sheet1!$A$15
I know how to copy the contents and formats, but I can't seem to get the named range definitions over. How can this be done? Is it possible to copy contents, formats and named range definition in one statement?
Name: Parameter_1, Refers To: Sheet1!$A$11
Name: Parameter_2, Refers To: Sheet1!$A$12
Name: Parameter_3, Refers To: Sheet1!$A$13
Workbook_B - which was originally based on the shell - has the following named ranges and definitions:
Name: Parameter_1, Refers To: Sheet1!$A$11
Name: Parameter_2, Refers To: Sheet1!$A$12
Name: Parameter_3, Refers To: Sheet1!$A$13
Name: Parameter_4, Refers To: Sheet1!$A$14
Name: Parameter_5, Refers To: Sheet1!$A$15
I am trying to write a macro that will copy the contents and formats of the named ranges - as well as the named range definitions - from Workbook_B to Workbook_A. That is, when the macro is done running, Workbook_A will have the following named ranges and definitions:
Name: Parameter_1, Refers To: Sheet1!$A$11
Name: Parameter_2, Refers To: Sheet1!$A$12
Name: Parameter_3, Refers To: Sheet1!$A$13
Name: Parameter_4, Refers To: Sheet1!$A$14
Name: Parameter_5, Refers To: Sheet1!$A$15
I know how to copy the contents and formats, but I can't seem to get the named range definitions over. How can this be done? Is it possible to copy contents, formats and named range definition in one statement?