ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   howto: saveas with file name from a cell in the current worksheet (https://www.excelbanter.com/new-users-excel/138002-howto-saveas-file-name-cell-current-worksheet.html)

Bob

howto: saveas with file name from a cell in the current worksheet
 
see subject

BigPig

howto: saveas with file name from a cell in the current worksheet
 
bob,

You can do it with vba. Here's a small snippet that you can assign to a
command button. Where "A1" is the cell that you are using to name the file.

This will save in the last folder you saved to.

ActiveWorkbook.SaveAs Filename:=Range("A1").Value

HTH

Bigpig


"bob" wrote:

see subject


DarrenL

howto: saveas with file name from a cell in the current worksh
 
BigPig,
Thank you. I have that part, but what if I wanted to add in a specific
folder to save it to? Where would I add the folder string? That's where my
real issue is. Thank you again.
ActiveWorkbook.SaveAs Filename:=???????Range("A1").Value
Darren

"BigPig" wrote:

bob,

You can do it with vba. Here's a small snippet that you can assign to a
command button. Where "A1" is the cell that you are using to name the file.

This will save in the last folder you saved to.

ActiveWorkbook.SaveAs Filename:=Range("A1").Value

HTH

Bigpig


"bob" wrote:

see subject



All times are GMT +1. The time now is 12:43 PM.

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