There may be times when you need to ask the user to select a location to save a file. This can be done using a save file dialog. Keep in mind. Morning All, I have a macro that modifies a standard template. At the end of this macro I want a save as dialogue that opens up in a default. Trying to set filename to cell A1 Value, but this does not work. what am I doing wrong please. TY Sub Move_Copy_Save() Dim varResult As.

Author: Taurg Shakadal
Country: Reunion
Language: English (Spanish)
Genre: Automotive
Published (Last): 8 February 2006
Pages: 285
PDF File Size: 10.32 Mb
ePub File Size: 14.95 Mb
ISBN: 660-8-36584-463-6
Downloads: 65062
Price: Free* [*Free Regsitration Required]
Uploader: Tubei

If this argument is omitted or greater than the number of filters present, the first file filter is used. This string passed in the FileFilter argument consists of pairs of file filter strings followed by the MS-DOS wildcard file filter specification, with each part getsavewsfilename each pair separated by commas. For instance, if your code sets out the following: FileFilter Optional Variant A string specifying file filtering criteria. Forums Blogs Articles Groups.


eAsFilename HELP

The macro cannot be run. The returned name may include a path specification. Results 1 to 7 of 7. Line that threw the error when Cancel was not clicked: Selecting NO raises Run-time error ”: Use code tags around code.

Afternoon, I’m currently using the following basic code, but for some reason it doesnt actually save to excsl location. November 2nd, For Each rRow In Sheet1.

Programming Excel with VBA and .NET by Steve Saunders, Jeff Webb

Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of getsaveasfilehameprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

This would be very annoying on the users side.

I’ve tried this on a local and a network drive. If this argument is omitted, the default title is used.

Login or Sign Up. The method explained there has getsavwasfilename pros and cons:. The time now is This method returns the selected file name or the name entered by the user.

Help Contact Us Go to top. This example displays the Save As dialog box, with the file filter set to text files. The majority of my users will currently be usingbut we are getsaveasfillename a move to You’ve declared saveName as a string?


Nobody knows getssveasfilename trouble I’ve not seen! For example, the following string specifies two file filters, text and addin: When I try to use this:. The path selected will be printed in cell A2. Ok I’ve kind of got somewhere with this.

Solved: eAsFilename question

You can tell the dialog to start in a specific folder. If I just stick with current code, can it be written any smarter? Any help would be appreciated! It getsaveasfklename only provide the full path the user has selected to save the file:. You may have to register before you can post:

Author: admin