Hi,
Working on a VBA code to allow me open a folder which was created a day before. Path and the partial folder name is static. The one thing that is variable is the end of folder name which would have a random date stamp. Example:
VBA so far:
Just can't figure out how to open Reporting_Extracts_14112017_[ANY_DATE_STAMP]....
Anyone had similar issue?
Working on a VBA code to allow me open a folder which was created a day before. Path and the partial folder name is static. The one thing that is variable is the end of folder name which would have a random date stamp. Example:
Code:
Reporting_Extracts_14112017_82404
VBA so far:
Code:
Private Sub fldOpen_Click()
Dim Foldername As String, strDate As String
strDate = Format(Now - 1, "ddmmyyyy")
Foldername = "\\pc\Path\Extracts\Reporting_Extracts_" & strDate & "_*"
Shell "C:\WINDOWS\explorer.exe """ & Foldername & "", vbNormalFocus
End Sub
Just can't figure out how to open Reporting_Extracts_14112017_[ANY_DATE_STAMP]....
Anyone had similar issue?