I have created a template for users to import some data. The user opens a form to select which files to import. I created a menu item for the form and the user clicks on the button to open the form. The macro that is attached to the button is simply frmMain.show.
My problem is that when the template is used once and is saved as another file the template is retaining the name of the previously saved file. When the template is re-opened to use again and the button to open the form is pressed the previous file is opened. It's very strange. I can not figure out where Excel is retaining the name of the file nor can I figure out why it is opening another file on the click of the button.
Any suggestions would be appreciated.
My problem is that when the template is used once and is saved as another file the template is retaining the name of the previously saved file. When the template is re-opened to use again and the button to open the form is pressed the previous file is opened. It's very strange. I can not figure out where Excel is retaining the name of the file nor can I figure out why it is opening another file on the click of the button.
Any suggestions would be appreciated.