very new to VBA. I'm trying to write a program that opens files in one folder, updates them and saves them in a new folder. I have that part done, the issue is that the below Do While Loop that cycles the code through the files in the given folder but doesn't end the loop when each file has been opened, edited and saved as in a the next period's folder. It just keeps repeating the loop. Any ideas? Thanks, Charlie
Do While (WLFile) > 0
Set WB = Workbooks.Open(WLPath & WLFile, UpdateLinks:=3)
ActiveWorkbook.SaveAs Filename:=MyFolder & "\" & _
"20" & WLYear & "\" & _
QTR & "Q" & "\" & _
WLFile
ActiveWorkbook.Close