vaibhav tandon
Member
Hi Guys,
I am very much new to VBA and was trying hands on various copy paste methods.I wnated to know basic code that world copy and paste the values in a worksheet from another worksheet when BOTH ARE CLOSED.I managed to write a code when both the worksheets are open.I wanted to write when they are closed.Any help would be appreciated.
Code for Opened workbooks
"
Sub test()
workbooks("Test1.xlsx").sheets("sheet1").range("A1:B5").copy _
workbooks("Test2.xlsx").sheets("sheet2").range (A1:B5")
Thanks and Regards
Vaibhav
I am very much new to VBA and was trying hands on various copy paste methods.I wnated to know basic code that world copy and paste the values in a worksheet from another worksheet when BOTH ARE CLOSED.I managed to write a code when both the worksheets are open.I wanted to write when they are closed.Any help would be appreciated.
Code for Opened workbooks
"
Sub test()
workbooks("Test1.xlsx").sheets("sheet1").range("A1:B5").copy _
workbooks("Test2.xlsx").sheets("sheet2").range (A1:B5")
Thanks and Regards
Vaibhav