When I copy from one Workbook to another things work fine, but when I record it as a Macro it works as I do it but will not replay.
I have tried many ways and spent lots of time hunting for solutions, many are not relevant or too complicated
I'm trying to collect "Month Data" I send out a Workbook which contains a Macro.
When it's sent back I have the "Year15" Workbook open, I open the "September" Workbooks one at a time and run the Macro to import the Data to Column A
This must have been done successfully many times, but I continually get error messages
Any guidance much appreciated
Many thanks
PS
I think i have finally managed to post HTML for first time! Yippeee
<font face=Courier New><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> CommandButton2_Click()<br><SPAN style="color:#007F00">'Workbook Name "September" this is my source data</SPAN><br><br><SPAN style="color:#007F00">'MData Name of Range("A1:A20)</SPAN><br>Application.Goto Reference:="MData"<br>Selection.Copy<br><br><SPAN style="color:#007F00">'Separate Workbook Named "Year15" this is my destination</SPAN><br>Windows("Year15.xlsm").Activate<br><br><SPAN style="color:#007F00">'This will be the first blank Cell Column A, but for now A24 will do.</SPAN><br>Range("A24").Select<br>ActiveSheet.Paste<br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
I have tried many ways and spent lots of time hunting for solutions, many are not relevant or too complicated
I'm trying to collect "Month Data" I send out a Workbook which contains a Macro.
When it's sent back I have the "Year15" Workbook open, I open the "September" Workbooks one at a time and run the Macro to import the Data to Column A
This must have been done successfully many times, but I continually get error messages
Any guidance much appreciated
Many thanks
PS
I think i have finally managed to post HTML for first time! Yippeee
<font face=Courier New><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> CommandButton2_Click()<br><SPAN style="color:#007F00">'Workbook Name "September" this is my source data</SPAN><br><br><SPAN style="color:#007F00">'MData Name of Range("A1:A20)</SPAN><br>Application.Goto Reference:="MData"<br>Selection.Copy<br><br><SPAN style="color:#007F00">'Separate Workbook Named "Year15" this is my destination</SPAN><br>Windows("Year15.xlsm").Activate<br><br><SPAN style="color:#007F00">'This will be the first blank Cell Column A, but for now A24 will do.</SPAN><br>Range("A24").Select<br>ActiveSheet.Paste<br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>