View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
ward376 ward376 is offline
external usenet poster
 
Posts: 360
Default GetSaveAsFilename Troubles

This should work for you.

Sub openas()
Dim vOpenFileFilter As String
Dim vTitle As String
Dim GetFileName As String
Dim vFileOpenName

vTitle = "Select the export file to use."
vOpenFileFilter = "All files(*.*), *.*"

vFileOpenName = _
Application.GetOpenFilename(vOpenFileFilter, 5, vTitle)

If vFileOpenName = "" Then
Exit Sub
Else
GetFileName = vFileOpenName
End If
End Sub

Cloiff Edwards