Hello,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I have been reading several thread about using the Union Method to merge two ranges into one, but I have not been able to successfully get mine to work. I read about issues with nulls, but fail to understand the issue. <o></o>
<o></o>
Here is what I have. Both ranges contain only text values with the exception of the trailing cells. I have tried removing the trailing cells to see if the union would work with no success<o></o>
<o></o>
Named Range Alpha is defined from A1 to A66. <o></o>
Cell A66 is blank.
<o></o>
Named Range Beta is defined from B5 to B25.<o></o>
Cell B25 is blank.<o></o>
<o></o>
When I run the step below in vba, the new named range is created, but contains nothing.<o></o>
<o></o>
ActiveWorkbook.Names.Add Name:="CombinedRoadmapFiles", RefersTo:=Union(Range("Alpha"), Range("Beta"))<o></o>
<o></o>
If I replace Beta with Alpha as shown below, the Alpha range is populated in the new named range. <o></o>
<o></o>
ActiveWorkbook.Names.Add Name:="CombinedRoadmapFiles", RefersTo:=Union(Range("Alpha"), Range("Alpha")).
Any advice is greatly appreciated.
<o></o>
Kind Regards,<o></o>
<o></o>
Kieran Shaw<o></o>
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I have been reading several thread about using the Union Method to merge two ranges into one, but I have not been able to successfully get mine to work. I read about issues with nulls, but fail to understand the issue. <o></o>
<o></o>
Here is what I have. Both ranges contain only text values with the exception of the trailing cells. I have tried removing the trailing cells to see if the union would work with no success<o></o>
<o></o>
Named Range Alpha is defined from A1 to A66. <o></o>
Cell A66 is blank.
<o></o>
Named Range Beta is defined from B5 to B25.<o></o>
Cell B25 is blank.<o></o>
<o></o>
When I run the step below in vba, the new named range is created, but contains nothing.<o></o>
<o></o>
ActiveWorkbook.Names.Add Name:="CombinedRoadmapFiles", RefersTo:=Union(Range("Alpha"), Range("Beta"))<o></o>
<o></o>
If I replace Beta with Alpha as shown below, the Alpha range is populated in the new named range. <o></o>
<o></o>
ActiveWorkbook.Names.Add Name:="CombinedRoadmapFiles", RefersTo:=Union(Range("Alpha"), Range("Alpha")).
Any advice is greatly appreciated.
<o></o>
Kind Regards,<o></o>
<o></o>
Kieran Shaw<o></o>