I am trying to open a .csv using the following code, but it doesn't seem to work. My file is saved in a Downloads folder and there is only 1 file in that folder. Because the file name changes over, so I use the wildcard.
I am using the following code.
Workbooks.Open "C:\Users\" & Environ$("username") & "\Downloads\" & "*.csv"
*wildcard, look atdirEnviron$("userprofile")instead of"C:\Users\" & Environ$("username")