Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I think you have a couple of choices.
You could just show the File|SaveAs dialog and let the user do their own save: Option Explicit Sub specialsave() Dim myStr As String myStr = Worksheets("sheet1").Range("a1").Value 'or myStr = "P:/Work/Equipment/Jim Jones.xls" Application.Dialogs(xlDialogSaveAs).Show arg1:=myStr End Sub Or you could ask the user for the name and then have the code save the workbook. Option Explicit Sub specialsave2() Dim myFileName As Variant Dim myStr As String myStr = Worksheets("sheet1").Range("a1").Value 'or myStr = "P:/Work/Equipment/Jim Jones.xls" myFileName = Application.GetSaveAsFilename(InitialFileName:=myS tr, _ filefilter:="Excel Files, *.xls") If myFileName = False Then Exit Sub End If ActiveWorkbook.SaveAs Filename:=myFileName End Sub Cell reference as the file name field wrote: I've created a fill and print form in Excel. The form contains a name field that we would like to use as the file name. Basically when we select save as it would go to the name box field and autofill the name on the save line. Example; P:/Work/Equipment/Jim Jones.xls P:/Work/Equipment/Robert Brown.xls -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert & link a graphic file in Excel 2003 -- updatable pictures! | Excel Discussion (Misc queries) | |||
Reflecting info between an excel file and a word one or two excel file. | Links and Linking in Excel | |||
Very slow in opening Excel 97 file in Excel 2003 | Setting up and Configuration of Excel | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) | |||
Excel 2000 file when opened in Excel 2003 generates errors? | Excel Discussion (Misc queries) |