Good day sir i have two workbooks
1. workbookSource- where we will get the data
2. workbookPastehere- where the data will be pasted
what code will i use if i want data from workbookSource column A and Column D to be paste in workbookPastehere Sheet INPUT, column B and column F,
i start in using this VBA code
this code work if the workbookPastehere.xlsm is not yet open, problem occur when workbookPastehere.xlsm is already open an error "workbookPastehere.xlsm is already open. Reopening will cause". i want a code that will not reopen the workbookPastehere.xlsm if its already open. thanks
1. workbookSource- where we will get the data
2. workbookPastehere- where the data will be pasted
what code will i use if i want data from workbookSource column A and Column D to be paste in workbookPastehere Sheet INPUT, column B and column F,
i start in using this VBA code
Sub CopyPaste()
Selection.copy
Workbooks.Open Filename:="C:\Users\Record\workbookPastehere.xlsm"
Sheets("Input").Select
Activesheet.paste
Application.cutcopymode = False
End sub
this code work if the workbookPastehere.xlsm is not yet open, problem occur when workbookPastehere.xlsm is already open an error "workbookPastehere.xlsm is already open. Reopening will cause". i want a code that will not reopen the workbookPastehere.xlsm if its already open. thanks