Does anyone know the code for running the Excel Macro for two different spreadsheets in parallel. Here is the code that works for them sequentially.
For example, I would like to write the code which allows these macros to run in parallel so that it would take only one fourth of the time to run macros that it would take if running sequentially for four different spreadsheets.
Thanks.
Code:
Workbooks.Open Filename:="C:\Documents and Settings\Administrator.SLB_EUROPE\Desktop\norm ops 150607.xls"
' Select Asset & Portfolio Parameter sheet
Sheets("Asset & Portfolio Parameter").Select
' Change the number of iterations
Range("D7").Select
ActiveCell.FormulaR1C1 = "50"
' Start to run the macro
Range("D8").Select
Application.Run "'norm ops 150607.xls'!Macro2"
' Save and close the spreadsheet
ActiveWorkbook.Save
ActiveWindow.Close
Workbooks.Open Filename:="C:\Documents and Settings\Administrator.SLB_EUROPE\Desktop\sachsend isruption6mths.xls"
' Select Asset & Portfolio Parameter sheet
Sheets("Asset & Portfolio Parameter").Select
' Change the number of iterations
Range("D7").Select
ActiveCell.FormulaR1C1 = "50"
' Start to run the macro
Range("D8").Select
Application.Run "'sachsendisruption6mths.xls'!Macro2"
' Save and close the spreadsheet
ActiveWorkbook.Save
ActiveWindow.Close
Thanks.
Comment