ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Generating File Names (https://www.excelbanter.com/excel-programming/278230-generating-file-names.html)

Barry

Generating File Names
 
Is there a way I can automatically generate a file name
using the contents of a cell. i would like the user to
be able to simply press Ctrl+s and save the file name as
a unique number generated in a cell.

Thanks

Bob Phillips[_5_]

Generating File Names
 
Barry,

Try something like

Activeworkbook.SaveAs Filename:= "C:\myTest\" & Range("A1").Value &
".xls"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Barry" wrote in message
...
Is there a way I can automatically generate a file name
using the contents of a cell. i would like the user to
be able to simply press Ctrl+s and save the file name as
a unique number generated in a cell.

Thanks





All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com