Hi
I'm copying text from a PDF document and pasting into Excel. If the text in the PDF is a paragraph, Excel pastes seperate lines rather than 1 continuous string.
This is what I have:
<TABLE style="WIDTH: 461pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=615><COLGROUP><COL style="WIDTH: 461pt; mso-width-source: userset; mso-width-alt: 22491" width=615><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 461pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=20 width=615>while transport specific strategies may address such</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 461pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=20 width=615>questions as the roles of the public and private sectors in road or rail infrastructure</TD></TR></TBODY></TABLE>
I want to select the first cell and run a macro that adds the text in the cell below to it and replaces the cell below with nothing.
Ideally - it would concatenate any other rows below also, say the 5 rows below it...
Is this possible?
I'm copying text from a PDF document and pasting into Excel. If the text in the PDF is a paragraph, Excel pastes seperate lines rather than 1 continuous string.
This is what I have:
<TABLE style="WIDTH: 461pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=615><COLGROUP><COL style="WIDTH: 461pt; mso-width-source: userset; mso-width-alt: 22491" width=615><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 461pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=20 width=615>while transport specific strategies may address such</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 461pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl65 height=20 width=615>questions as the roles of the public and private sectors in road or rail infrastructure</TD></TR></TBODY></TABLE>
I want to select the first cell and run a macro that adds the text in the cell below to it and replaces the cell below with nothing.
Ideally - it would concatenate any other rows below also, say the 5 rows below it...
Is this possible?
Last edited: