I want to get file name from path.
But output in wb2 = nothing![]()
Dim wb2 As Workbook, temp FileOnly = Dir("D:\Input\Report1.xlsx") MsgBox (FileOnly) ------> show Report1.xlsx (true) Set wb2 = Workbooks(FileOnly)
Please guide me for solve it.
I want to get file name from path.
But output in wb2 = nothing![]()
Dim wb2 As Workbook, temp FileOnly = Dir("D:\Input\Report1.xlsx") MsgBox (FileOnly) ------> show Report1.xlsx (true) Set wb2 = Workbooks(FileOnly)
Please guide me for solve it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks