defined names

ehsas

Board Regular
Joined
Sep 17, 2002
Messages
200
How can i copy the defined names from one workbook and paste the same into another workbook.Regards
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
yes it open.Tell me does it need to be as c:book2.xls or it just need to be open.
I have tried both by still.Regards
 
Upvote 0
I tried with simple defined names it working but when I am trying with workbook having following defined names it giving error messeges.

=OFFSET(carsold.xlw!xvalues,2,0)
=9.99999999999999E+307
=OFFSET(carsold.xlw!xvalues,3,0)
=OFFSET(carsold.xlw!xvalues,1,0)
=OFFSET(sheet1!$C$6,0,COUNTA(bignum,sheet1!$6:$6)-13,1,13)

regards,
 
Upvote 0
Well you can't have everything!

For items 1, 3 and 4 I think carsold.xlw needs to be open.

I'll have a think about the other two.
 
Upvote 0
let me tell you that for test purpose i have made similar defined names in book1 and run your macro it is working.but when trying from carsold workbook it is not working.What can be the problem.Regards,
 
Upvote 0
Either:

1. Copy the code to the carsold workbook and run it from there, or
2. To run it from the original workbook change

For Each nm In ThisWorkbook.Names

to

For Each nm In ActiveWorkbook.Names
 
Upvote 0
Seems Nate does not use Option Explicit.

Yeah, bunk variable! ****, I do use it sometimes, but not in this case... It would still work if the end-user isn't using strict variables...

I went back and fixed the code. Sorry 'bout the goof!
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,037
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top