LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range Name Duplication and PasteSpecial Macro

One method would be to remove the duplicate range names on the destination
sheet using code. (could affect existing formulas in the destination
workbook).

another would be to transfer the formulas as text strings

you would use the VBA equivalent to Edit=Replace

Replace
what =
with ZZ=

then do you copy and pastspecial values. (rather than formulas)

then reverse it on the new sheet and the old sheet.

Replace
What ZZ=
with =

You would need to consider which names you want to be used.

--
Regards,
Tom Ogilvy

"Mike Wrob" <Mike wrote in message
...
I tried it and I'm still getting the message boxes. Any other ideas?

"Tom Ogilvy" wrote:

Try
Application.DisplayAlerts = False
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone,

SkipBlanks:= _
False, Transpose:=False
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy




 
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
Duplication of string values within a range JRD Excel Worksheet Functions 4 June 26th 09 07:24 PM
PasteSpecial / Formats also pastes a random range name Tim Zych Excel Discussion (Misc queries) 0 November 10th 06 05:03 AM
Stop Number duplication in a range Nu-bEE Excel Discussion (Misc queries) 5 March 21st 05 04:23 PM
VB PasteSpecial when range changes mjwillyone[_2_] Excel Programming 4 December 28th 03 03:31 AM
PasteSpecial macro CG Rosén Excel Programming 3 December 22nd 03 01:14 AM


All times are GMT +1. The time now is 03:44 AM.

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

About Us

"It's about Microsoft Excel"