Can you please try this? Idea would be something like this.
Dim FileNo As String
For i = 1 To 35
FileNo = "File" & i
Windows(FileNo).Activate
'Rest of the code
Next
More Related Contents:
- VBA – How to grab the cell below if a cell has text?
- Excel VBA – A general how to
- VBA code required for Msg Box when two value equal in two cells
- Find text and show value if condition is met
- Excel check len string separated by comma [closed]
- How can I insert variable into formula in VBA
- Wait until ActiveWorkbook.RefreshAll finishes – VBA
- Excel column number from column name
- Pop up the Excel Statusbar?
- VBA – destroy a modeless UserForm instance properly
- How To Speed Up VBA Code
- Execute a command in command prompt using excel VBA
- “Unable to get the VLookup property of the WorksheetFunction Class” error [duplicate]
- Copy data from another Workbook through VBA
- Excel VBA Load worksheet in Function
- Excel VBA – Combine rows with duplicate values in one cell and merge values in other cell
- Load csv file into a VBA array rather than Excel Sheet
- Insert line break in wrapped cell via code
- Change color of certain characters in a cell
- Want VBA in excel to read very large CSV and create output file of a small subset of the CSV
- VBA Macro crashes after 32000 rows
- How to break a long string into multiple lines
- Read VBA macros (or vbaProject.bin) of an Excel file without opening it in MS Excel [closed]
- simple vba code gives me run time error 91 object variable or with block not set
- Calling regasm without administrative rights for COM interop in Excel VBA
- Is there a way for DIR(path) in VBA to handle strings longer than 260?
- Start VBA macro when editing a cell
- VBA Run-time error 438 appears when “paste” runs
- If Not function proceeds when value *is* the one specified
- Copy an entire worksheet to a new worksheet in Excel 2010