Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
hi. i have a worksheet which contains a name in a particular cell. is
it possible to create a macro that will use this name and save a copy of the workbook with that name? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
This doesn't specify a path unless that is in your cell with the
filename. But you can always add that into the code. Sub foo() ThisWorkbook.SaveAs Range("A1").Text End Sub tc wrote: hi. i have a worksheet which contains a name in a particular cell. is it possible to create a macro that will use this name and save a copy of the workbook with that name? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Also, if you are storing your code in a separate workbook, you will
need to use ActiveWorkbook instead of ThisWorkbook. JW wrote: This doesn't specify a path unless that is in your cell with the filename. But you can always add that into the code. Sub foo() ThisWorkbook.SaveAs Range("A1").Text End Sub tc wrote: hi. i have a worksheet which contains a name in a particular cell. is it possible to create a macro that will use this name and save a copy of the workbook with that name? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Disable save, save as, but allow save via command button | Excel Programming | |||
How to diasble save and save as menu but allow a save button | Excel Programming | |||
how to get disk icon on save button of save as dialog like 2000 | Excel Discussion (Misc queries) | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming |