Rename a workbook to an automated name (i.e. date) with a macro

G

Guest

Hi,
I have an automated workbook that automaticly log a industrial production
line.
Theese sheets logs every equipment stop as well as the fault, and it also
logs quality checks of the product.(OPC Data Collection)
I have a macro that saves it after every update.
However, I want to automaticly rename the file to the current date at a
certain time i.e. 00:00:05, or just on a command. This would save a file for
each day of the year with the production data logged in it.
I hope anyone can help me.
Thanks
 
J

john.dorn

ExcelJon said:
Hi,
I have an automated workbook that automaticly log a industrial production
line.
Theese sheets logs every equipment stop as well as the fault, and it also
logs quality checks of the product.(OPC Data Collection)
I have a macro that saves it after every update.
However, I want to automaticly rename the file to the current date at a
certain time i.e. 00:00:05, or just on a command. This would save a file for
each day of the year with the production data logged in it.
I hope anyone can help me.
Thanks

Well, to add the sheet simply use:

Sheets.Add.Name = Format(Time, "hh:mm:ss")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top