Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Name conflict

I want to copy a range from one workbook to another. Within the range is
a reference to a named range which exists in both workbooks. I want it
to use the name in the destination workbook. At the moment I get an
Excel message saying:

"A formula or sheet you want to move or copy contains the name 'name',
which already exists on the detination worksheet. Do you want to use
this version of the name?"

It gives a choice Yes or No. I don't want this message to appear and I
always want to choose "Yes".

I can't just send an enter keystroke because if there is a different
error such as the ranges being a different size I want to be alterted.

Any suggestions ?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Name conflict

If you aren't doing any formula adjustments

Workbooks("Book2.xls").Worksheets("Sheet3").Range( "A1:F32").Formula = _
ThisWorkbook.Worksheets("Sheet1").Range("A1:F32"). Formula

--
Regards,
Tom Ogilvy


"John Turton" wrote in message
...
I want to copy a range from one workbook to another. Within the range is
a reference to a named range which exists in both workbooks. I want it
to use the name in the destination workbook. At the moment I get an
Excel message saying:

"A formula or sheet you want to move or copy contains the name 'name',
which already exists on the detination worksheet. Do you want to use
this version of the name?"

It gives a choice Yes or No. I don't want this message to appear and I
always want to choose "Yes".

I can't just send an enter keystroke because if there is a different
error such as the ranges being a different size I want to be alterted.

Any suggestions ?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Name conflict

Thanks - so simple and it works
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Name conflict smaruzzi Excel Discussion (Misc queries) 3 October 4th 08 01:44 PM
Name Conflict Roger[_4_] Excel Discussion (Misc queries) 2 March 15th 08 01:13 AM
Name Conflict Roger[_4_] Excel Discussion (Misc queries) 5 March 14th 08 02:14 PM
Name Conflict Error Irfan Excel Worksheet Functions 0 December 25th 07 02:46 PM
Name Conflict Dialog Box??? Ken Excel Discussion (Misc queries) 3 December 16th 04 11:40 PM


All times are GMT +1. The time now is 08:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"