Hi,
i want to get the excel file name in my path how can i do it ?
Sub Main()
Call initial
' =============================================================================================================================
Dim newDate: newDate = Format(DateAdd("M", 0, Now), "MMMM")
Call wbSetOpen(g_wbMMT, g_dirInputPath, "**.XLSX*")
Call wbSaveReplace(g_wbMMT, g_dirOutputPath + "Output_(I want to get name of file in g_dirInputPath)" & CStr(Format(DateAdd("M", 0, Now), "MMMM_YYYY")) & ".xlsx", False)
i want to get the excel file name in my path how can i do it ?
Sub Main()
Call initial
' =============================================================================================================================
Dim newDate: newDate = Format(DateAdd("M", 0, Now), "MMMM")
Call wbSetOpen(g_wbMMT, g_dirInputPath, "**.XLSX*")
Call wbSaveReplace(g_wbMMT, g_dirOutputPath + "Output_(I want to get name of file in g_dirInputPath)" & CStr(Format(DateAdd("M", 0, Now), "MMMM_YYYY")) & ".xlsx", False)