I am trying to copy and reformat data from a master Excel worksheet (generated by a report generator) to detail sheets.
The report generator merges cells to format the data on the screen. This creates a variable length field (variable number of cells merged).
How would I unmerge the cells in VBA?
The cells I would need to reference to extract the data to move to the detail worksheets are not the same. I am thinking that I would walk along the cells and check for the next cell with data. Something along the lines of:
loop
If cell <> "" then
move cell to target_cell
end if
end loop
Also, within a single cell, I may need to extract some of the data to move to separate target cells: CO00159070 - Kingdom Park. CO00159070 needs to go to target_cell1 and Kingdom Park needs to go to target_cell2. How do I parse the data?
Thank you.
The report generator merges cells to format the data on the screen. This creates a variable length field (variable number of cells merged).
How would I unmerge the cells in VBA?
The cells I would need to reference to extract the data to move to the detail worksheets are not the same. I am thinking that I would walk along the cells and check for the next cell with data. Something along the lines of:
loop
If cell <> "" then
move cell to target_cell
end if
end loop
Also, within a single cell, I may need to extract some of the data to move to separate target cells: CO00159070 - Kingdom Park. CO00159070 needs to go to target_cell1 and Kingdom Park needs to go to target_cell2. How do I parse the data?
Thank you.