MichaelJ300
Board Regular
- Joined
- Oct 30, 2013
- Messages
- 149
- Office Version
- 2016
- Platform
- Windows
Hello,
I need help on code that will find the last row of data, delete all cells, and move them to the left.
Thanks!
Please see below:
[TABLE="width: 532"]
<TBODY>[TR]
[TD="colspan: 5"]BEFORE</SPAN>[/TD]
[TD] [/TD]
[TD="colspan: 3"]After</SPAN>[/TD]
[/TR]
[TR]
[TD]1</SPAN>[/TD]
[TD]ABCD</SPAN>[/TD]
[TD][/TD]
[TD]Frank1</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]1</SPAN>[/TD]
[TD]ABCD</SPAN>[/TD]
[TD]Frank1</SPAN>[/TD]
[/TR]
[TR]
[TD]2</SPAN>[/TD]
[TD]EFGH</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD]Frank2</SPAN>[/TD]
[TD] [/TD]
[TD]2</SPAN>[/TD]
[TD]EFGH</SPAN>[/TD]
[TD]Frank2</SPAN>[/TD]
[/TR]
[TR]
[TD]3</SPAN>[/TD]
[TD][/TD]
[TD]IJKL</SPAN>[/TD]
[TD][/TD]
[TD]Frank3</SPAN>[/TD]
[TD] [/TD]
[TD]3</SPAN>[/TD]
[TD]IJKL</SPAN>[/TD]
[TD]Frank3</SPAN>[/TD]
[/TR]
[TR]
[TD]4</SPAN>[/TD]
[TD][/TD]
[TD]MNOP</SPAN>[/TD]
[TD][/TD]
[TD]Frank4</SPAN>[/TD]
[TD] [/TD]
[TD]4</SPAN>[/TD]
[TD]MNOP</SPAN>[/TD]
[TD]Frank4</SPAN>[/TD]
[/TR]
[TR]
[TD]5</SPAN>[/TD]
[TD]QRST</SPAN>[/TD]
[TD][/TD]
[TD]Frank5</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]5</SPAN>[/TD]
[TD]QRST</SPAN>[/TD]
[TD]Frank5</SPAN>[/TD]
[/TR]
[TR]
[TD]6</SPAN>[/TD]
[TD][/TD]
[TD]UVWX</SPAN>[/TD]
[TD]Frank6</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]6</SPAN>[/TD]
[TD]UVWX</SPAN>[/TD]
[TD]Frank6</SPAN>[/TD]
[/TR]
[TR]
[TD]7</SPAN>[/TD]
[TD]XZ12</SPAN>[/TD]
[TD][/TD]
[TD]Frank7</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]7</SPAN>[/TD]
[TD]XZ12</SPAN>[/TD]
[TD]Frank7</SPAN>[/TD]
[/TR]
[TR]
[TD]8</SPAN>[/TD]
[TD][/TD]
[TD="align: right"]3456</SPAN>[/TD]
[TD]Frank8</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]8</SPAN>[/TD]
[TD="align: right"]3456</SPAN>[/TD]
[TD]Frank8</SPAN>[/TD]
[/TR]
[TR]
[TD]9</SPAN>[/TD]
[TD][/TD]
[TD="align: right"]7890</SPAN>[/TD]
[TD]Frank9</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]9</SPAN>[/TD]
[TD="align: right"]7890</SPAN>[/TD]
[TD]Frank9</SPAN>[/TD]
[/TR]
[TR]
[TD]10</SPAN>[/TD]
[TD="align: right"]1234</SPAN>[/TD]
[TD][/TD]
[TD]Frank10</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]10</SPAN>[/TD]
[TD="align: right"]1234</SPAN>[/TD]
[TD]Frank10</SPAN>[/TD]
[/TR]
[TR]
[TD]11</SPAN>[/TD]
[TD][/TD]
[TD="align: right"]5678</SPAN>[/TD]
[TD][/TD]
[TD]Frank11</SPAN>[/TD]
[TD] [/TD]
[TD]11</SPAN>[/TD]
[TD="align: right"]5678</SPAN>[/TD]
[TD]Frank11
</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL span=5><COL><COL span=3></COLGROUP>[/TABLE]
I need help on code that will find the last row of data, delete all cells, and move them to the left.
Thanks!
Please see below:
[TABLE="width: 532"]
<TBODY>[TR]
[TD="colspan: 5"]BEFORE</SPAN>[/TD]
[TD] [/T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][/TD]
[TD] [/TD]
[TD]7</SPAN>[/TD]
[TD]XZ12</SPAN>[/TD]
[TD]Frank7</SPAN>[/TD]
[/TR]
[TR]
[TD]8</SPAN>[/TD]
[TD][/TD]
[TD="align: right"]3456</SPAN>[/TD]
[TD]Frank8</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]8</SPAN>[/TD]
[TD="align: right"]3456</SPAN>[/TD]
[TD]Frank8</SPAN>[/TD]
[/TR]
[TR]
[TD]9</SPAN>[/TD]
[TD][/TD]
[TD="align: right"]7890</SPAN>[/TD]
[TD]Frank9</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]9</SPAN>[/TD]
[TD="align: right"]7890</SPAN>[/TD]
[TD]Frank9</SPAN>[/TD]
[/TR]
[TR]
[TD]10</SPAN>[/TD]
[TD="align: right"]1234</SPAN>[/TD]
[TD][/TD]
[TD]Frank10</SPAN>[/TD]
[TD][/TD]
[TD] [/TD]
[TD]10</SPAN>[/TD]
[TD="align: right"]1234</SPAN>[/TD]
[TD]Frank10</SPAN>[/TD]
[/TR]
[TR]
[TD]11</SPAN>[/TD]
[TD][/TD]
[TD="align: right"]5678</SPAN>[/TD]
[TD][/TD]
[TD]Frank11</SPAN>[/TD]
[TD] [/TD]
[TD]11</SPAN>[/TD]
[TD="align: right"]5678</SPAN>[/TD]
[TD]Frank11
</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL span=5><COL><COL span=3></COLGROUP>[/TABLE]