I'm trying to use the code block:
Sub OpenPulledReports(ByRef filepath)
MsgBox (Dir(filepath))
If Dir(filepath) <> "" Then
Application.Workbooks.Open (filepath)
End If
End Sub
to check if a file is open already, and open it if not. When this Sub
runs, I can't debug through it, but rather, it just takes off to End Sub
.
That's not my problem, though. When it runs, a file explorer window opens with the title "Update Values: filename" (as in, the filename which the filepath reaches). This is really slowing things down. Also, I'm pretty sure my Dir(filepath)
isn't doing what I'm expecting.
Thanks for the help.