Hello,
I am fairly new to VBA and coding. However I was able to create a macro to copy data from one file into another, save as an excel file as well as an XML file.
While the macro works perfectly fine, I wanted to know if there was any way to create a button to change information in the code itself. For example, the date and the title of the file.
You see, within the code, I have to change the dates to reflect the period of data that I am updating, which should also be reflected in the name of the file. I know I can do a file and replace in the code to change the information to reflect the dates and naming conventions I’d like to use for the updated information.
But is there any way to change the code via a button?
For example, have a command box to change the date, and to rename the file without having to manually change this in the code every time.
Bookmarks