beginvbaanalyst
Board Regular
- Joined
- Jan 28, 2020
- Messages
- 141
- Office Version
- 365
- Platform
- Windows
Hi Everyone,
How do I copy and paste work between workbooks (I have a total of five open workbooks)?
My Range will be unlimited such as :
Rows.Count).End(xlUp))
I see people do two typically but I don't know how to write when there's more than two.
I have one main workbook that I will be using; the other four are scripts I'm pasting into to run files.
How would I go about doing this this?
Currently I have:
This opens the workbooks but now I'm stuck.
I understand I need to set my Dims, could I just remove the first process all together?
Please help.
Thank you.
How do I copy and paste work between workbooks (I have a total of five open workbooks)?
My Range will be unlimited such as :
Rows.Count).End(xlUp))
I see people do two typically but I don't know how to write when there's more than two.
I have one main workbook that I will be using; the other four are scripts I'm pasting into to run files.
How would I go about doing this this?
Currently I have:
VBA Code:
Sub OpenScriptsForExecution()
'Opens Listing Script From A Drive
Workbooks.Open Filename:="A:\Scripts Library\WSM3_Listing_Template_9.17.18.xlsx"
'Opens Delisting Script From A Drive
Workbooks.Open Filename:="A:\Scripts Library\WSM3_DELIST.xlsx"
'Opens Exclusion Script From A Drive
Workbooks.Open Filename:="A:\Scripts Library\WSO1_WSO5_CREATE_Assortment_Exclusion_Module.xlsx"
'Opens Deletion of Exclusion Module From A Drive
Workbooks.Open Filename:="A:\Scripts Library\WSO2_Delete_First_Line_9.17.18.xlsx"
End Sub
Sub CopyWorkbooks()
Dim WorkbookQuery As Workbook
Dim WorkbookList As Workbook
Dim WorkbookDelist As Workbook
Dim WorkbookExclusion As Workbook
Dim WorkbookDeleteExclusion As Workbook
This opens the workbooks but now I'm stuck.
I understand I need to set my Dims, could I just remove the first process all together?
Please help.
Thank you.