Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2006

Tip: Looking for answers? Try searching our database.

GetSaveAsFilename

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Syed Zeeshan Haider - 08 Dec 2006 18:38 GMT
Hello Everybody,
I have MS Excel 2003 Pro.

Do I need some kind of reference to a library checked before I could use
GetSaveAsFilename? I am getting Run-time error '1004'.

Thhank you,
Signature

Syed Zeeshan Haider

------------------------------------------------------------
Learn about famous muslim names at http://szh.20m.com/learn/aboutnames.html

Nigel - 08 Dec 2006 18:50 GMT
No it is standard excel dialog, you must have the parameters set
incorrectly. Post your code for further advice.

Signature

Cheers
Nigel

> Hello Everybody,
> I have MS Excel 2003 Pro.
[quoted text clipped - 3 lines]
>
> Thhank you,
Chip Pearson - 08 Dec 2006 18:53 GMT
No additional libraries need be referenced. GetSaveAsFilename is native to
Excel.

What code is causing the error? The following works for me:

Dim FName As Variant
FName = Application.GetSaveAsFilename("Book11.xls", _
   "Excel Workbooks (*.xls),*.xls")
If FName = False Then
   MsgBox "User clicked cancel."
Else
   MsgBox "User choose: " & FName
End If

Signature

Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

> Hello Everybody,
> I have MS Excel 2003 Pro.
[quoted text clipped - 3 lines]
>
> Thhank you,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.