Single Row to Multiple Row Determination

J

Jim

I have an excel spreadsheet feed that, for any row A may cover multiple rows
of B. How do I determine programmatically the range of B rows that are
included "within" row A1? (I will be merging all the text contained in the B
rows into one cell for each value of A.) The data is arranged similar to the
following;

A1 B1
B2
B3
B4
A2 B5
B6
A3 B7
 
B

Barb Reinhardt

I'm not exactly sure what you're doing, but you could try doing something
like this

Dim r as Range
for each r in ActiveSheet.UsedRange
if r.mergearea.count > 1 then
Debug.print r.mergearea.address
end if
next r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top