Copy/Paste Defined NAMEs

PIJim

Board Regular
Joined
Jul 29, 2005
Messages
143
I am using Excel 2007

I am creating reports where I have to define NAMES for several cells & cell ranges.

I will need to repeat this process numerous times within the same sheet and on additional sheets. The only thing that will change in the NAMES are the cell references and references to defined NAMES.

Is there a way I can copy/paste names? This would save me a bunch of time if I only had to modify small parts of the NAME definitions.

Thanks for any help
Jim
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi,

Code:
Sub Paste() 
Application.Goto Reference:="HEADER" 'adjust for your named ranges
Selection.Copy
Sheets("Sheet2").Select 'adjust for your target
Range("A7").Select 'adjust for your target
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

Regards,
Ian
 
Upvote 0
I tried the code and couldn't get it to work. I know very little about VBA

Can you explain the logic of this code so I cant attempt to figure out what I am doing wrong?

Thank you
Jim
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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