Quantcast
Channel: How to have for each loop in vba skip to next iteration? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Mike J for How to have for each loop in vba skip to next iteration?

Just change the logic of your If statment around to:For Each myFile In mySource.Files If myFile.Name <> "Thumbs.db" Then iCol = 2 Cells(iRow, iCol).Value = myFile.Path iCol = iCol + 1 Cells(iRow,...

View Article



How to have for each loop in vba skip to next iteration?

I got a file reader from excelexperts.com that lists the files within a folder (and has an option to include subfolders). I decided to tweak the code to skip "Thumbs.db" files.I've actually got the...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images