ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2002 GetSaveAsFileName (https://www.excelbanter.com/excel-programming/277666-excel-2002-getsaveasfilename.html)

Kevin May

Excel 2002 GetSaveAsFileName
 
Within Excel 2000 i used the getsaveasfilename option and
created the filename from Text and Strings. The text
contained the word "Homepages" and this does not seem to
work in 2002 but did in 2000. Any ideas ?

Dave Peterson[_3_]

Excel 2002 GetSaveAsFileName
 
This worked ok for me in xl2002 and win98:

Option Explicit
Sub testme02()

Dim myString As String
Dim myFileName As Variant


myString = "asdf homepages qwer.xls"

myFileName = Application.GetSaveAsFilename _
(InitialFileName:="C:\my documents\exce\" & myString)

If myFileName = False Then
Exit Sub
End If

ThisWorkbook.SaveAs Filename:=myFileName

End Sub

You may want to post that snippet of code (not the workbook) that's causing
heartburn.

Kevin May wrote:

Within Excel 2000 i used the getsaveasfilename option and
created the filename from Text and Strings. The text
contained the word "Homepages" and this does not seem to
work in 2002 but did in 2000. Any ideas ?


--

Dave Peterson



All times are GMT +1. The time now is 09:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com