Hi <o
></o
>
<o
> </o
>
Please can anyone help?<o
></o
>
<o
> </o
>
I need a Macro writing that will open the two spread sheets (Books 1 & Book 2) to do the task explained below. I will run the macro from a spread sheet already open and as I have several spread sheets to copy information from (Book 2 Spread Sheet) and into the new (Book 1 Spread sheet), I will input the different file paths / names into cells within the open spread sheet with the marco. I would then like to be able to run the macro which will open the two spread sheets and complete the task below. <o
></o
>
I have two spread sheets Book 1 & 2. <o
></o
>
Book 1 has three columns filled in:- Number, Name and Street. <o
></o
>
Book 2 has all columns filled in:- Number, Name, street, wages 1, wages 2 etc.<o
></o
>
<o
> </o
>
I need the macro open both Book 1 & 2, confirm the information in the Number, Name and Street is the same and if so put the wages information into the relevant cells of spread sheet Book 1. If the Number, Name and Street are different then the wages columns should be left blank in Book 1.<o
></o
>
<o
> </o
>
See below.<o
></o
>
<o
> </o
>
Book 1<o
></o
>
<o
> </o
>[TABLE="width: 635"]
<TBODY>[TR]
[TD]House Number</SPAN>[/TD]
[TD]Name</SPAN>[/TD]
[TD]Street </SPAN>[/TD]
[TD]Wages 1</SPAN>[/TD]
[TD]Wages 2</SPAN>[/TD]
[TD]Wages 3 </SPAN>[/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Roberts</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=3></COLGROUP>[/TABLE]
<v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o
referrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v
ath o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v
ath><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape style="WIDTH: 450.75pt; HEIGHT: 47.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_4 type="#_x0000_t75" o:spid="_x0000_i1027"><v:imagedata o:title="" src="file:///C:\DOCUME~1\smithr\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.emz"></v:imagedata></v:shape><o
></o
>
<o
> </o
>
Book 2<o
></o
>
<o
> [TABLE="width: 635"]
<TBODY>[TR]
[TD]House Number[/TD]
[TD]Name</SPAN>[/TD]
[TD]Street </SPAN>[/TD]
[TD]Wages 1</SPAN>[/TD]
[TD]Wages 2</SPAN>[/TD]
[TD]Wages 3 </SPAN>[/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]25</SPAN>[/TD]
[TD="align: right"]35</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Jones </SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]35</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[TD="align: right"]46</SPAN>[/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Roberts</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]52</SPAN>[/TD]
[TD="align: right"]53</SPAN>[/TD]
[TD="align: right"]54</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=3></COLGROUP>[/TABLE]
</o
></SPAN>
<v:shape style="WIDTH: 450.75pt; HEIGHT: 47.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_5 type="#_x0000_t75" o:spid="_x0000_i1026"><v:imagedata o:title="" src="file:///C:\DOCUME~1\smithr\LOCALS~1\Temp\msohtmlclip1\01\clip_image003.emz"></v:imagedata></v:shape><o
></o
>
<o
> </o
>
Book 1 after running macro.<o
></o
>
<o
> [TABLE="width: 635"]
<TBODY>[TR]
[TD]House Number[/TD]
[TD]Name</SPAN>[/TD]
[TD]Street </SPAN>[/TD]
[TD]Wages 1</SPAN>[/TD]
[TD]Wages 2</SPAN>[/TD]
[TD]Wages 3 </SPAN>[/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]25</SPAN>[/TD]
[TD="align: right"]35</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Roberts</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]52</SPAN>[/TD]
[TD="align: right"]53</SPAN>[/TD]
[TD="align: right"]54</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=3></COLGROUP>[/TABLE]
</o
></SPAN>
<v:shape style="WIDTH: 450.75pt; HEIGHT: 47.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_6 type="#_x0000_t75" o:spid="_x0000_i1025"><v:imagedata o:title="" src="file:///C:\DOCUME~1\smithr\LOCALS~1\Temp\msohtmlclip1\01\clip_image005.emz"></v:imagedata></v:shape><o
></o
>
<o
> </o
>
Thanks in expectation of some help!<o
></o
>
<o
> </o
>
Regards<o
></o
>
Richard<o
></o
>


<o


Please can anyone help?<o


<o


I need a Macro writing that will open the two spread sheets (Books 1 & Book 2) to do the task explained below. I will run the macro from a spread sheet already open and as I have several spread sheets to copy information from (Book 2 Spread Sheet) and into the new (Book 1 Spread sheet), I will input the different file paths / names into cells within the open spread sheet with the marco. I would then like to be able to run the macro which will open the two spread sheets and complete the task below. <o


I have two spread sheets Book 1 & 2. <o


Book 1 has three columns filled in:- Number, Name and Street. <o


Book 2 has all columns filled in:- Number, Name, street, wages 1, wages 2 etc.<o


<o


I need the macro open both Book 1 & 2, confirm the information in the Number, Name and Street is the same and if so put the wages information into the relevant cells of spread sheet Book 1. If the Number, Name and Street are different then the wages columns should be left blank in Book 1.<o


<o


See below.<o


<o


Book 1<o


<o


<TBODY>[TR]
[TD]House Number</SPAN>[/TD]
[TD]Name</SPAN>[/TD]
[TD]Street </SPAN>[/TD]
[TD]Wages 1</SPAN>[/TD]
[TD]Wages 2</SPAN>[/TD]
[TD]Wages 3 </SPAN>[/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Roberts</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=3></COLGROUP>[/TABLE]
<v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o





<o


Book 2<o


<o

<TBODY>[TR]
[TD]House Number[/TD]
[TD]Name</SPAN>[/TD]
[TD]Street </SPAN>[/TD]
[TD]Wages 1</SPAN>[/TD]
[TD]Wages 2</SPAN>[/TD]
[TD]Wages 3 </SPAN>[/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]25</SPAN>[/TD]
[TD="align: right"]35</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Jones </SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]35</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[TD="align: right"]46</SPAN>[/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Roberts</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]52</SPAN>[/TD]
[TD="align: right"]53</SPAN>[/TD]
[TD="align: right"]54</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=3></COLGROUP>[/TABLE]
</o

<v:shape style="WIDTH: 450.75pt; HEIGHT: 47.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_5 type="#_x0000_t75" o:spid="_x0000_i1026"><v:imagedata o:title="" src="file:///C:\DOCUME~1\smithr\LOCALS~1\Temp\msohtmlclip1\01\clip_image003.emz"></v:imagedata></v:shape><o


<o


Book 1 after running macro.<o


<o

<TBODY>[TR]
[TD]House Number[/TD]
[TD]Name</SPAN>[/TD]
[TD]Street </SPAN>[/TD]
[TD]Wages 1</SPAN>[/TD]
[TD]Wages 2</SPAN>[/TD]
[TD]Wages 3 </SPAN>[/TD]
[/TR]
[TR]
[TD]12</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]25</SPAN>[/TD]
[TD="align: right"]35</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[/TR]
[TR]
[TD]13</SPAN>[/TD]
[TD]Smith</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14</SPAN>[/TD]
[TD]Roberts</SPAN>[/TD]
[TD]Coronation Street </SPAN>[/TD]
[TD="align: right"]52</SPAN>[/TD]
[TD="align: right"]53</SPAN>[/TD]
[TD="align: right"]54</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=3></COLGROUP>[/TABLE]
</o

<v:shape style="WIDTH: 450.75pt; HEIGHT: 47.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_6 type="#_x0000_t75" o:spid="_x0000_i1025"><v:imagedata o:title="" src="file:///C:\DOCUME~1\smithr\LOCALS~1\Temp\msohtmlclip1\01\clip_image005.emz"></v:imagedata></v:shape><o


<o


Thanks in expectation of some help!<o


<o


Regards<o


Richard<o

