Hello,
I am newer to writing vba code and am having trouble in this request from my manager.
I have a text box containing a file name complete with the whole file path. It is:
"C:\Users\Me\Desktop\Project\testing database\2016\March 2016.xlsx"
I also have a prompt asking the user what they want to name the table after this file is imported as a table. How do I extract only the "March 2016", and place that into the input box so the user can just proceed if they like the file name and also have the option to edit, and I want to do this VBA? We have file naming conventions so the case of editing the file name will be rare, but it will happen.
Thanks,
Tex
I am newer to writing vba code and am having trouble in this request from my manager.
I have a text box containing a file name complete with the whole file path. It is:
"C:\Users\Me\Desktop\Project\testing database\2016\March 2016.xlsx"
I also have a prompt asking the user what they want to name the table after this file is imported as a table. How do I extract only the "March 2016", and place that into the input box so the user can just proceed if they like the file name and also have the option to edit, and I want to do this VBA? We have file naming conventions so the case of editing the file name will be rare, but it will happen.
Thanks,
Tex