I would like to have a macro to copy and paste from another workbook.
Target Workbook,"Main"
<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 64px;"><col style="width: 143px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td> </td><td>A</td><td>B</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td>Folder:</td><td>C;\data\sales</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">2</td><td>Filename :</td><td>150309_salesrecord.xls</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td><td>worksheet</td><td>marSales</td></tr></tbody></table>
I have 2 workbooks to start with. One is Target Workbook, with "Main" and "marSales" worksheet. The other is 150309_salesrecord.xls.
I would like to have a macro, to copy from 150309_salesrecord.xls to current workbook, to sheet name"marSales". The folder is look at, the files name to copied and the worksheet to paste to are all defined in B1 to B3 as user input.
I would only wan to copy from 150309_salesrecord.xls, the following.
- 4th row to the last available row.
- Column B to last available column
- It will be pasted into the marSales workbook, starting for row 2. Column 1(cell A2). No extra column will be copied over as there is some formula found in the worksheet and i do not wan to be overwrite.
Target Workbook,"Main"
<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 64px;"><col style="width: 143px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td> </td><td>A</td><td>B</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td>Folder:</td><td>C;\data\sales</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">2</td><td>Filename :</td><td>150309_salesrecord.xls</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td><td>worksheet</td><td>marSales</td></tr></tbody></table>
I have 2 workbooks to start with. One is Target Workbook, with "Main" and "marSales" worksheet. The other is 150309_salesrecord.xls.
I would like to have a macro, to copy from 150309_salesrecord.xls to current workbook, to sheet name"marSales". The folder is look at, the files name to copied and the worksheet to paste to are all defined in B1 to B3 as user input.
I would only wan to copy from 150309_salesrecord.xls, the following.
- 4th row to the last available row.
- Column B to last available column
- It will be pasted into the marSales workbook, starting for row 2. Column 1(cell A2). No extra column will be copied over as there is some formula found in the worksheet and i do not wan to be overwrite.