Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying named range returns #N/A

Hello,

I have a macro that copies a named range from one workbook to another.
The line of code is:

DestinationWorkbook.Range(rname).Value = OriginalWorkbook.Range
(rname).Value

This works great, but sometimes my named range in the destination
workbook is larger than the original. In this case the range in the
destination workbook is returning #N/A for all of the extra cell
addresses that are not in the original named range. I would like to
return a blank instead of #N/A if the the address in the destination
workbook doesn't exist in the original.

Hope this makes sense. I apologize if it's been addressed. I didn't
see it.

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
SUM() of empty dynamic named range returns #N/A Aviashn Excel Programming 2 June 2nd 08 08:52 PM
Pass named range to user defined function returns #value! Ron Rosenfeld Excel Programming 0 November 10th 07 01:03 PM
Pass named range to user defined function returns #value! JMB Excel Programming 1 November 10th 07 12:24 PM
HLOOKUP using a named range returns #VALUE! MicheleO Excel Worksheet Functions 2 August 24th 06 06:06 PM
Named range returns 1004 error Stu D. Excel Programming 0 September 3rd 04 09:37 AM


All times are GMT +1. The time now is 10:17 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"