Hi Everyone
Please can someone help me? I'm a complete novice with VBA but I really need a macro for work.
I have a master spreadsheet eg:
<table frame="VOID" rules="NONE" border="0" cellspacing="0" cols="3"> <colgroup><col width="86"><col width="86"><col width="86"></colgroup> <tbody> <tr> <td align="LEFT" height="17" width="86">Name</td> <td align="LEFT" width="86">Product ID</td> <td align="LEFT" width="86">Result</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">57</td> <td align="LEFT">good</td> </tr> <tr> <td align="LEFT" height="17">Dave</td> <td align="center">57</td> <td align="LEFT">good</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">60</td> <td align="LEFT">ok</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">56</td> <td align="LEFT">ok</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">34</td> <td align="LEFT">good</td> </tr> <tr> <td align="LEFT" height="17">Dave</td> <td align="center">56</td> <td align="LEFT">bad</td> </tr> <tr> <td align="LEFT" height="17">Dave</td> <td align="center">23</td> <td align="LEFT">bad</td> </tr> </tbody> </table>
And I need a looping macro to create a new workbook (i.e. not a sheet within the existing workbook) which is named Dave.xls and Steve.xls
I want the headers included and the formatting to remain the same if possible.
I would also like to define the location to save them.
Is this possible?
I was asked to make it a looping macro because previous filters have not worked - it's a very large spreadsheet.
I was also asked to provide a failsafe check which I understood as being some kind of check which ensured that Dave.xls only had Dave's information in it and that all of Dave's information was in Dave.xls. I'm not sure if this is possible, so it's ok if not.
Many thanks for your help!!
Please can someone help me? I'm a complete novice with VBA but I really need a macro for work.
I have a master spreadsheet eg:
<table frame="VOID" rules="NONE" border="0" cellspacing="0" cols="3"> <colgroup><col width="86"><col width="86"><col width="86"></colgroup> <tbody> <tr> <td align="LEFT" height="17" width="86">Name</td> <td align="LEFT" width="86">Product ID</td> <td align="LEFT" width="86">Result</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">57</td> <td align="LEFT">good</td> </tr> <tr> <td align="LEFT" height="17">Dave</td> <td align="center">57</td> <td align="LEFT">good</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">60</td> <td align="LEFT">ok</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">56</td> <td align="LEFT">ok</td> </tr> <tr> <td align="LEFT" height="17">Steve</td> <td align="center">34</td> <td align="LEFT">good</td> </tr> <tr> <td align="LEFT" height="17">Dave</td> <td align="center">56</td> <td align="LEFT">bad</td> </tr> <tr> <td align="LEFT" height="17">Dave</td> <td align="center">23</td> <td align="LEFT">bad</td> </tr> </tbody> </table>
And I need a looping macro to create a new workbook (i.e. not a sheet within the existing workbook) which is named Dave.xls and Steve.xls
I want the headers included and the formatting to remain the same if possible.
I would also like to define the location to save them.
Is this possible?
I was asked to make it a looping macro because previous filters have not worked - it's a very large spreadsheet.
I was also asked to provide a failsafe check which I understood as being some kind of check which ensured that Dave.xls only had Dave's information in it and that all of Dave's information was in Dave.xls. I'm not sure if this is possible, so it's ok if not.
Many thanks for your help!!