I want to open a list of spreadsheets to update a cell and save them again. But since it takes time to open each spredsheet, VB crashes after a few ones are open. Maybe using some timer to allow for more time to open each one? Or maybe some check to determine that the previous spreadsheet is already opened before proceeding with the next one? Many thanks!
Workbooks.Open Filename:="\\File1.xlsx"
ActiveWindow.Visible = False
Windows("File1.xlsx").Visible = True
Application.Goto Reference:="'Tab1'!R1C1"
Range("L1").Select
ActiveCell.FormulaR1C1 = "10/30/2022"
Workbooks.Open Filename:="\\File 2.xlsx"
ActiveWindow.Visible = False
Windows("File2.xlsx").Visible = True
Application.Goto Reference:="'Tab1'!R1C1"
Range("L1").Select
ActiveCell.FormulaR1C1 = "10/30/2022"
Workbooks.Open Filename:="\\File3.xlsx"
ActiveWindow.Visible = False
Windows("File3.xlsx").Visible = True
Application.Goto Reference:="'Tab1'!R1C1"
Range("L1").Select
ActiveCell.FormulaR1C1 = "10/30/2022"