I just get a Path/File access error on the MkDir line of code instead of getting the message box.If Len(Dir("Report " & Format(Date, "yyyymmdd"))) = 0 Then MkDir "Report " & Format(Date, "yyyymmdd") Else MsgBox "You already ran today's reports and need to delete the folder before running them again." Exit Sub
I have tried moving the lines around, too. Anybody know what I'm doing wrong?