Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi ,
I am using VBA to display a form and let the user enter the data into excel sheet. I have text box with the customer name. I would like to save the file using the customer name. So if my customer is James Bond I would like the file saved to be as JamesBond.xls Can anybody help me with this Appreciate your help Suhas |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This will work if JamesBond is in cell A1 if not replace A1 with what you need
Sub Test If Range("A1").Value = "" Then End ActiveWorkbook.SaveAs Filename: = Range("A1").Value End Sub " wrote: Hi , I am using VBA to display a form and let the user enter the data into excel sheet. I have text box with the customer name. I would like to save the file using the customer name. So if my customer is James Bond I would like the file saved to be as JamesBond.xls Can anybody help me with this Appreciate your help Suhas |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to save my VBA-code | Excel Worksheet Functions | |||
FILE 'SAVE AS' IN VBA CODE | Excel Discussion (Misc queries) | |||
Code to create atbs in excel sheet | Excel Discussion (Misc queries) | |||
Code to create tabs in single excel sheet | Excel Discussion (Misc queries) | |||
Macro Save As Code??? | Excel Worksheet Functions |