macro's

D

Dawn

I am trying to write a macro prevent users from saving
files with the wrong file name and in the wrong location.

The File "Save As" screen will not allow me to reference a
cell for the file name. Is this even possible to do?
 
A

Andy Brown

"Dawn",

With full path & filename in A1
(C:\Documents and Settings\Andy\My Documents\Home.xls)

ActiveWorkbook.SaveAs Filename:= _
Range("A1"), FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

worked for me. You could probably dump most of the arguments.

HTH,
Andy
 

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