I'm pulling data out of an html source. I am currently taking it out line by line. It looks :
<table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory."><tbody><tr><td id="t3r3" headers="t3h1">Nova Scotia</td> <td headers="t3ha t3h2 t3r3">30 603</td> <td headers="t3ha t3hb t3h3 t3r3">55.1</td> <td headers="t3ha t3hb t3h4 t3r3">20.8</td> <td headers="t3ha t3hb t3h5 t3r3">11.7</td> <td headers="t3ha t3hb t3h6 t3r3">7.8</td> <td headers="t3ha t3hb t3h7 t3r3">2.5</td> <td headers="t3ha t3hb t3h8 t3r3">97.9</td> <td headers="t3ha t3hb t3h9 t3r3">1.3</td> <td headers="t3ha t3hb t3h10 t3r3">0.6</td> <td headers="t3ha t3hb t3h11 t3r3">1.9</td> <td headers="t3ha t3hb t3h12 t3r3">0.3</td></tr></tbody></table>
<table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory."><tbody><tr><tr><td id="t3r2" headers="t3h1">Prince Edward Island</td><td headers="t3ha t3h2 t3r2">6 148</td><td headers="t3ha t3hb t3h3 t3r2">51.4</td><td headers="t3ha t3hb t3h4 t3r2">22.8</td><td headers="t3ha t3hb t3h5 t3r2">13.2</td><td headers="t3ha t3hb t3h6 t3r2">8.3</td><td headers="t3ha t3hb t3h7 t3r2">2.6</td><td headers="t3ha t3hb t3h8 t3r2">98.3</td><td headers="t3ha t3hb t3h9 t3r2">1.0</td><td headers="t3ha t3hb t3h10 t3r2">0.5</td><td headers="t3ha t3hb t3h11 t3r2">1.6</td><td headers="t3ha t3hb t3h12 t3r2">0.2</td></tr></tr></tbody></table><table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory."><tbody><tr><td id="t3r1" headers="t3h1">Newfoundland and Labrador</td> <td headers="t3ha t3h2 t3r1">17 989</td> <td headers="t3ha t3hb t3h3 t3r1">57.7</td> <td headers="t3ha t3hb t3h4 t3r1">21.5</td> <td headers="t3ha t3hb t3h5 t3r1">10.7</td> <td headers="t3ha t3hb t3h6 t3r1">6.4</td> <td headers="t3ha t3hb t3h7 t3r1">1.9</td> <td headers="t3ha t3hb t3h8 t3r1">98.3</td> <td headers="t3ha t3hb t3h9 t3r1">0.9</td> <td headers="t3ha t3hb t3h10 t3r1">0.5</td> <td headers="t3ha t3hb t3h11 t3r1">1.4</td> <td headers="t3ha t3hb t3h12 t3r1">0.3</td></tr></tbody></table><table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory." width="440" height="145"><tbody><tr><td valign="top">The above list goes on to include the rest of the Canadian provinces. When separated correctly there is one naming column (province name) + 11 columns of numbers. I want to change this text to columns to most efficient way possible. Currently I am past line by line into excel, and converting each from text to columns using 'fixed width'. I remove the tabs where it tries to separate province names that have more than one word. I thought that there might be a quicker solution with VBA. Any advice appreciated.
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td></tr><tr><td id="t3r2" headers="t3h1">
</td> <td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td headers="t3ha t3h2 t3r2">
</td> <td headers="t3ha t3hb t3h3 t3r2">
</td> <td headers="t3ha t3hb t3h4 t3r2">
</td> <td headers="t3ha t3hb t3h5 t3r2">
</td> <td headers="t3ha t3hb t3h6 t3r2">
</td> <td headers="t3ha t3hb t3h7 t3r2">
</td> <td headers="t3ha t3hb t3h8 t3r2">
</td> <td headers="t3ha t3hb t3h9 t3r2">
</td> <td headers="t3ha t3hb t3h10 t3r2">
</td> <td headers="t3ha t3hb t3h11 t3r2">
</td> <td headers="t3ha t3hb t3h12 t3r2">
</td></tr></tbody></table>
<table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory."><tbody><tr><td id="t3r3" headers="t3h1">Nova Scotia</td> <td headers="t3ha t3h2 t3r3">30 603</td> <td headers="t3ha t3hb t3h3 t3r3">55.1</td> <td headers="t3ha t3hb t3h4 t3r3">20.8</td> <td headers="t3ha t3hb t3h5 t3r3">11.7</td> <td headers="t3ha t3hb t3h6 t3r3">7.8</td> <td headers="t3ha t3hb t3h7 t3r3">2.5</td> <td headers="t3ha t3hb t3h8 t3r3">97.9</td> <td headers="t3ha t3hb t3h9 t3r3">1.3</td> <td headers="t3ha t3hb t3h10 t3r3">0.6</td> <td headers="t3ha t3hb t3h11 t3r3">1.9</td> <td headers="t3ha t3hb t3h12 t3r3">0.3</td></tr></tbody></table>
<table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory."><tbody><tr><tr><td id="t3r2" headers="t3h1">Prince Edward Island</td><td headers="t3ha t3h2 t3r2">6 148</td><td headers="t3ha t3hb t3h3 t3r2">51.4</td><td headers="t3ha t3hb t3h4 t3r2">22.8</td><td headers="t3ha t3hb t3h5 t3r2">13.2</td><td headers="t3ha t3hb t3h6 t3r2">8.3</td><td headers="t3ha t3hb t3h7 t3r2">2.6</td><td headers="t3ha t3hb t3h8 t3r2">98.3</td><td headers="t3ha t3hb t3h9 t3r2">1.0</td><td headers="t3ha t3hb t3h10 t3r2">0.5</td><td headers="t3ha t3hb t3h11 t3r2">1.6</td><td headers="t3ha t3hb t3h12 t3r2">0.2</td></tr></tr></tbody></table><table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory."><tbody><tr><td id="t3r1" headers="t3h1">Newfoundland and Labrador</td> <td headers="t3ha t3h2 t3r1">17 989</td> <td headers="t3ha t3hb t3h3 t3r1">57.7</td> <td headers="t3ha t3hb t3h4 t3r1">21.5</td> <td headers="t3ha t3hb t3h5 t3r1">10.7</td> <td headers="t3ha t3hb t3h6 t3r1">6.4</td> <td headers="t3ha t3hb t3h7 t3r1">1.9</td> <td headers="t3ha t3hb t3h8 t3r1">98.3</td> <td headers="t3ha t3hb t3h9 t3r1">0.9</td> <td headers="t3ha t3hb t3h10 t3r1">0.5</td> <td headers="t3ha t3hb t3h11 t3r1">1.4</td> <td headers="t3ha t3hb t3h12 t3r1">0.3</td></tr></tbody></table><table class="lined fontSize90" summary="This table shows the distribution of employer businesses by size of business establishment in each province and territory." width="440" height="145"><tbody><tr><td valign="top">The above list goes on to include the rest of the Canadian provinces. When separated correctly there is one naming column (province name) + 11 columns of numbers. I want to change this text to columns to most efficient way possible. Currently I am past line by line into excel, and converting each from text to columns using 'fixed width'. I remove the tabs where it tries to separate province names that have more than one word. I thought that there might be a quicker solution with VBA. Any advice appreciated.
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td valign="top">
</td></tr><tr><td id="t3r2" headers="t3h1">
</td> <td valign="top">
</td><td valign="top">
</td><td valign="top">
</td><td headers="t3ha t3h2 t3r2">
</td> <td headers="t3ha t3hb t3h3 t3r2">
</td> <td headers="t3ha t3hb t3h4 t3r2">
</td> <td headers="t3ha t3hb t3h5 t3r2">
</td> <td headers="t3ha t3hb t3h6 t3r2">
</td> <td headers="t3ha t3hb t3h7 t3r2">
</td> <td headers="t3ha t3hb t3h8 t3r2">
</td> <td headers="t3ha t3hb t3h9 t3r2">
</td> <td headers="t3ha t3hb t3h10 t3r2">
</td> <td headers="t3ha t3hb t3h11 t3r2">
</td> <td headers="t3ha t3hb t3h12 t3r2">
</td></tr></tbody></table>