Hello kerrybenno,
Since your ranges are on different worksheets, you cannot use the Union method on them to return a Range object. This is an inherent limitation of VBA.
What you could do instead is to create a collection object that stores your dynamic ranges. You could then loop through each item in the collection, just as you might loop through each Area in a Union of non-contiguous ranges on the same worksheet.
Regards,
Brad
Main Topics
Browse All Topics





by: chris_bottomleyPosted on 2009-10-09 at 07:52:52ID: 25535615
Hello kerrybenno,
In theory what you are trying to do is fine but are the ranges contiguous as otherwise I think this is your problem,
Regards,
chris_bottomley