About 471,000 results
Open links in new tab
  1. vba - Loop through each row of a range in Excel - Stack Overflow

    Jul 8, 2019 · How do I loop through each row of a multi-column range using Excel VBA? All the tutorials I've been searching up seem only to mention working through a one-dimensional range...

  2. excel - Skip to next iteration in loop vba - Stack Overflow

    I am trying to create a simple conditional loop that will go to the next iteration if a condition is true. The code I have so far is: For i = 2 To 24 Level = Cells(i, 4) Return = Cells(i, 5...

  3. Excel VBA Loop on columns - Stack Overflow

    Dec 21, 2012 · Yes, let's use Select as an example sample code: Columns("A").select How to loop through Columns: Method 1: (You can use index to replace the Excel Address)

  4. Find and FindNext for Excel VBA - Stack Overflow

    Once the .Find loop completes, open a new workbook with the Workbooks.Open method, and run a quick loop that takes each array value and places it in the order that you prefer. Another …

  5. excel - Loop through files in a folder using VBA? - Stack Overflow

    Apr 30, 2012 · I would like to loop through the files of a directory using vba in Excel 2010. In the loop, I will need: the filename, and the date at which the file was formatted. I have coded the …

  6. What is the most efficient/quickest way to loop through rows in …

    Nov 18, 2011 · If you are just looping through 10k rows in column A, then dump the row into a variant array and then loop through that. You can then either add the elements to a new array …

  7. vba - Code for looping through all excel files in a specified folder ...

    May 2, 2011 · Once you have the list, just use a for loop to iterate through it, opening each file in turn, then doing the query on that file, and so on. If you use VBScript, then the preferred way …

  8. How to pause for specific amount of time? (Excel/VBA)

    Complete Guide to Pausing VBA Execution Background Information and Explanation All Microsoft Office applications run VBA code in the same thread as the main user interface. This means, …

  9. excel - VBA Loop through unique values in range based on criteria ...

    Dec 6, 2024 · MaxCells = WorksheetFunction.CountIfs(Worksheets("Location Groups").Range("C:C"), "Yellow") I guess I then need to do a loop from 1 to MaxCells. But that …

  10. Loop Through All Subfolders Using VBA - Stack Overflow

    I'm looking for a VBA script that will loop through all subfolders of a specified folder. When I say all subfolders, I mean each folder inside the specified folder, and each folder inside of that, ...