Thread: Union Function
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Union Function

First, the Union method requires Range object arguments, not Sheet
objects.

Second, the Union method returns a Range object, which is a child object
of a Sheet. You can't have a Range Object that has two parent (sheet)
objects.



In article ,
NutoVBA wrote:

I am trying to combine data on two different sheets in the same workbook
using the following command:
Set Union_sh = Application.Union(Sheets("BSPL+"), Sheets("Other OMI"))

For some reason this won't work and I cannot understand why.