Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want the user to save a protected worksheet by clicking on an action
buttom. The file should be saved with another file name taken from a cell in the worksheet. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "mamealemka" ha scritto nel messaggio ... I want the user to save a protected worksheet by clicking on an action buttom. The file should be saved with another file name taken from a cell in the worksheet. Hi, try the following code: Private Sub CommandButton1_Click() Const MyPath = "C:\" With ThisWorkbook .SaveAs Filename:=MyPath & Cells(1, 2).Value & ".xls" '<===Cell B1 = Change End With End Sub This code does not make a control on the path of your folder. Thunder |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Thunder
Thanks. "Thunder" wrote: "mamealemka" ha scritto nel messaggio ... I want the user to save a protected worksheet by clicking on an action buttom. The file should be saved with another file name taken from a cell in the worksheet. Hi, try the following code: Private Sub CommandButton1_Click() Const MyPath = "C:\" With ThisWorkbook .SaveAs Filename:=MyPath & Cells(1, 2).Value & ".xls" '<===Cell B1 = Change End With End Sub This code does not make a control on the path of your folder. Thunder |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "mamealemka" ha scritto nel messaggio ... Hi Thunder Thanks. Hi mamealemka, You're Welcome, De Nada, De Rien, Di Nulla, ????????, ????, ?? ??????? ;-) tHUNDER |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Outlook Attachments opening after several errors everytime | Setting up and Configuration of Excel | |||
when I save a file from Excel 2003 to cd it saves as read only | Excel Worksheet Functions | |||
Reflecting info between an excel file and a word one or two excel file. | Excel Worksheet Functions | |||
Exporting excel to text file | Excel Discussion (Misc queries) | |||
Excel How do I create a comma delineated xls file to a comma delineated. | Excel Discussion (Misc queries) |