Hello all,
(Very first post and as mentioned extremely new to VBA - which programmers tell me will melt my brain )
I have some code already that works to open a workbook and search for a keyword and copy the cells next to that word. Now I have a need to search designated workbooks for a keyword and copy the entire column of data (or last cell in that column that contains a value).
Example:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Speed 1[/TD]
[TD]Condition Count[/TD]
[TD]Speed 2[/TD]
[TD]Condition Count[/TD]
[TD]Total Counts[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]456[/TD]
[TD]4[/TD]
[TD]654[/TD]
[TD]6[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]789[/TD]
[TD]6[/TD]
[TD]345[/TD]
[TD]7[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Phil[/TD]
[TD]234[/TD]
[TD]4[/TD]
[TD]345[/TD]
[TD]3[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Totals[/TD]
[TD]1379[/TD]
[TD][/TD]
[TD]1344[/TD]
[TD][/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
I would have to search the workbook (which is really only 1 sheet in csv format) for the word Speed and then return the last cell values (1379 and 1344 in this case). The book it is searching can see anywhere from 3-8 instances of the keyword.
Thanks in advance!
Dave
(Very first post and as mentioned extremely new to VBA - which programmers tell me will melt my brain )
I have some code already that works to open a workbook and search for a keyword and copy the cells next to that word. Now I have a need to search designated workbooks for a keyword and copy the entire column of data (or last cell in that column that contains a value).
Example:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Speed 1[/TD]
[TD]Condition Count[/TD]
[TD]Speed 2[/TD]
[TD]Condition Count[/TD]
[TD]Total Counts[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]456[/TD]
[TD]4[/TD]
[TD]654[/TD]
[TD]6[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]789[/TD]
[TD]6[/TD]
[TD]345[/TD]
[TD]7[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Phil[/TD]
[TD]234[/TD]
[TD]4[/TD]
[TD]345[/TD]
[TD]3[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Totals[/TD]
[TD]1379[/TD]
[TD][/TD]
[TD]1344[/TD]
[TD][/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
I would have to search the workbook (which is really only 1 sheet in csv format) for the word Speed and then return the last cell values (1379 and 1344 in this case). The book it is searching can see anywhere from 3-8 instances of the keyword.
Thanks in advance!
Dave