Hi there,
I would like some help with opening files with variable file names.
A sample file name would be: "C:\abcd10062015defgh.csv"
The question is how do I use wildcards to open this file having gotten the date as a variable. The characters before and after the DDMMYYYY are never the same
Thanks in advance.
I would like some help with opening files with variable file names.
A sample file name would be: "C:\abcd10062015defgh.csv"
PHP:
Dim file_path1 As String
Dim MyDate As String
file_path1 = "C:\ABCD" & MyDate & "defgh.csv"
If Dir(file_path1) <> "" Then
Workbooks.Open file_path1
The question is how do I use wildcards to open this file having gotten the date as a variable. The characters before and after the DDMMYYYY are never the same
Thanks in advance.
Last edited: