I want to know how to copy the value of some cells of WORKBOOK1's worksheet1 TO WORKBOOK2's worksheet1 in VBA.
Note: in workbook1-worksheet1, the type of the cell the not the same as the corresponding cell's type in workbook2-worksheet1. Should I make the type to be consistent?
And can I write the code as below?
Can anyone help me?
Thanks a lot!
Note: in workbook1-worksheet1, the type of the cell the not the same as the corresponding cell's type in workbook2-worksheet1. Should I make the type to be consistent?
And can I write the code as below?
Code:
workbook("book1"). worksheet(1).range("B42")= workbook("book2").worksheet(1).range("A1")
Can anyone help me?
Thanks a lot!