paste into Save As... box


Posted by Steve on April 17, 2001 7:37 AM

I need to be able to open the Save As... box and paste the contents of a cell for a filename, BUT let the user still be able to choose the location for the file. Then they can click the Save As... button.

Thanks for any help

Posted by Dave Hawley on April 17, 2001 3:44 PM


Hi Steve

Run this code:


Sub TryThis()
Dim SFileName As String
SFileName = Sheets("Sheet1").Range("A1")
Application.Dialogs(xlDialogSaveAs).Show SFileName
End Sub

Dave

OzGrid Business Applications

Posted by Artem on April 17, 2001 6:09 PM

A similar problem...

hi,

i am trying to do a similar thing, but i want the following to appear in a "File name:" line

blinking cursor space current date and time. here's an example with formatting:

| (2001-04-17, 09-05 PM)

so that i can add any name in front and have something like:

report (2001-04-17, 09-05 PM).xls as a result.

I know it is kind of stupid because every file has a time stamp already, but i just want to be able to add time stamp to the name only when i need it and otherwise keep saving the file with the old time stamp. THANKS!




Posted by Steve on April 18, 2001 10:30 AM

It worked great! Thanks Dave. : I need to be able to open the Save As... box and paste the contents of a cell for a filename, BUT let the user still be able to choose the location for the file. Then they can click the Save As... button.