background: I have files that have file names 06-01-11, 06-02-11....ie dates.
I am trying to return file names going in date order (part of a larger thing but this is the piece I have having issues with). for now, I am just trying to get a message box to show me the proper file name (one after the other). once that works I can build it into my larger macro
I am using
when i try to put 01 instead of "01", it keeps reverting to just 1, but I need it to say 01 (that is until the number is greater than or equal to 10
I am trying to return file names going in date order (part of a larger thing but this is the piece I have having issues with). for now, I am just trying to get a message box to show me the proper file name (one after the other). once that works I can build it into my larger macro
I am using
HTML:
Dim filelocation As String
Dim rptmonth As String
Dim rptday As String
Dim rptyear As String
filelocation = "C:\Users\smakatura\Documents\call report\prep documents\test\" & rptmonth & "-" & rptday & "-" & rptyear
rptmonth = "06"
rptday = "01"
rptyear = "11"
Do Until rptday = 3
MsgBox (filelocation)
rptday = rptday + 1
Loop
when i try to put 01 instead of "01", it keeps reverting to just 1, but I need it to say 01 (that is until the number is greater than or equal to 10