I am trying to make a selection from a spreadsheet via VBA and paste it to a Word doc. There are merged cells in the selection and I want to include them as is. The selection size may change so I am using .Range.End
to get to the end of the selection. Problem is, once my code hits a merged cell, it cannot go further and returns only a part of the selection.
How can I modify this? Preferably I want to achieve this without loops.
Dim rngEnd As Range
Set rngEnd = shDevAvail.Range("C8").End(xlDown)
shDevAvail.Range("A6", rngEnd).Copy
wdDoc.Bookmarks("Device_Avail_Chart").Range.Paste
Here is the data that I am trying to select. The blue rows are the merged cells. When I tried to get to the bottom the selection, I can only pull up to the row before the next blue rows.