Hello,
I have the following code that was working to open a file from a certain directory and it stopped working. Does anyone see anything wrong with the code? Thanks in advance!
I have the following code that was working to open a file from a certain directory and it stopped working. Does anyone see anything wrong with the code? Thanks in advance!
Code:
Sub CIRS()
Dim DATstr As String
DATstr = Format((IIf(Weekday(Date) = 2, Date - 3, Date - 1)), "yyyymmdd")
Workbooks.Open "[URL="file://\\imports\preproc\archive\ABC\XYZ\Pricing_DEF_GHIJ\outbound\"]\\imports\preproc\archive\ABC\XYZ\Pricing_DEF_GHIJ\outbound\[/URL]" & DATstr & "\*ABC_DEF.csv"
End Sub