SpeedThink
MIS
Is anyone aware of a macro that will "automatically" name a worksheet and a file based on the contents that are typed within a range on my worksheet?
I create a daily report by importing data from an Oracle application to an Excel Template. The data from the Oracle application is saved in a text file such as "PVAR_1234.prn."
Therefore, upon importing the data onto the source worksheet, I would like to name the worksheet "Source PVAR_1234." I am currently altering the worksheet name manually. The name of the Oracle text file will always contain "PVAR" - the only change to the name on a daily basis is the 4 numbers. In other words, the following day the file will be similar to "PVAR_2345.prn."
Therefore, is it possible to enter the desired worksheet name and the desired filename onto the template worksheet and use VBA to automatically name the worksheet and file accordingly to coincide with the data that is contained in the two cell ranges?
Example:
Cell A1 Source_PVAR_1234
Cell A2 Daily Adjustment Report May20_April28
I create a daily report by importing data from an Oracle application to an Excel Template. The data from the Oracle application is saved in a text file such as "PVAR_1234.prn."
Therefore, upon importing the data onto the source worksheet, I would like to name the worksheet "Source PVAR_1234." I am currently altering the worksheet name manually. The name of the Oracle text file will always contain "PVAR" - the only change to the name on a daily basis is the 4 numbers. In other words, the following day the file will be similar to "PVAR_2345.prn."
Therefore, is it possible to enter the desired worksheet name and the desired filename onto the template worksheet and use VBA to automatically name the worksheet and file accordingly to coincide with the data that is contained in the two cell ranges?
Example:
Cell A1 Source_PVAR_1234
Cell A2 Daily Adjustment Report May20_April28