ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to save Excel macro using name contained in cell? (https://www.excelbanter.com/excel-worksheet-functions/11417-how-save-excel-macro-using-name-contained-cell.html)

CG

How to save Excel macro using name contained in cell?
 
I am trying to use a macro to save workshets under a name contained within a
cell in the worksheet. The result will be "push a button and the shhet is
saved with a name that is contained in the sheet".

IC

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

Ian

"CG" wrote in message
...
I am trying to use a macro to save workshets under a name contained within
a
cell in the worksheet. The result will be "push a button and the shhet is
saved with a name that is contained in the sheet".





All times are GMT +1. The time now is 07:22 AM.

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