Macro To Automatically Save As

F

fail2excel

I am working on a macro to do a series of operations: Assign a Workorder
#;Date; Give job an active status, etc. I've got most of the bits and pieces
but I would like the macro finalize the operation by automatically "Save
as", assign a name using custom identifiers, break the link, reset the page.
I've recorded a macro performing the Save As but I need to know how assemble
the parts from my work oder and insert them into the title
Workorder#LastnameDescriptionDate
=(H5) &(B11) &(I2) &(I8)
Any advice would be great, Thanks BILL T.
 
J

Jacob Skaria

Dim strFile As String
Dim strFolder As String

strFolder = "c:\"
strFile = Range("H5") & Range("B11") & Range("I2") & Format(I8,"dd-mm-yy")

ActiveWorkbook.SaveAs Filename:=strFolder & strFile
ActiveWorkbook.Close

If this post helps click Yes
 

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

Similar Threads

SAVE AS/ GET SAVE AS/ 1
Prompt to save as Macro 10
SAVE AS MACRO 6
assign macro - toolbar 2
SAVE AS MACRO 5
Save As macro 2
macro to save as 13
MACRO TO POP UP SAVE AS WINDOW 1

Top