B
Bad at VBA
Hi,
I've been happily using a macro that has been copying and pasting data
for me. However, I have recently encountered an issue where the sheets
I am copying my data from have merged cells.
As far as I can tell, Selection.Rows.Count will not work as desired
when some columns are merged, but others are not. Basically it is
counting what may be 100 rows of data as one row, due to the cell
merging.
' select all lines except title
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
Is there another way to select all of the data, excluding the header
row, when columns A is merged, but columns B has individual rows worth
of data?
Column A Column B
Header row Header row
Data data
data
data
data
Data data
data
Thanks
I've been happily using a macro that has been copying and pasting data
for me. However, I have recently encountered an issue where the sheets
I am copying my data from have merged cells.
As far as I can tell, Selection.Rows.Count will not work as desired
when some columns are merged, but others are not. Basically it is
counting what may be 100 rows of data as one row, due to the cell
merging.
' select all lines except title
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
Is there another way to select all of the data, excluding the header
row, when columns A is merged, but columns B has individual rows worth
of data?
Column A Column B
Header row Header row
Data data
data
data
data
Data data
data
Thanks