G
Guest
Hello,
Maybe it's plain simple but to me it looks strange:
The following code:
Sub OpenIt()
Dim fileSaveName
fileSaveName = Application.GetSaveAsFilename("NBN.txt", "Text Files
..txt), *.txt", , "Save NBN B62-003 as text file")
End Sub
Opens the SaveAs dialog box.
But with the code
Function OpenIt(Teta As Double) As Double
Dim fileSaveName
fileSaveName = Application.GetSaveAsFilename("NBN.txt", "Text Files
(*.txt), *.txt", , "Save NBN B62-003 as text file")
End Function
the dialog box is not openend.
How come? Does excel prohibit dialog boxes in functions?
The function is used as a worksheet function.
THank you veru much
Bart
Maybe it's plain simple but to me it looks strange:
The following code:
Sub OpenIt()
Dim fileSaveName
fileSaveName = Application.GetSaveAsFilename("NBN.txt", "Text Files
..txt), *.txt", , "Save NBN B62-003 as text file")
End Sub
Opens the SaveAs dialog box.
But with the code
Function OpenIt(Teta As Double) As Double
Dim fileSaveName
fileSaveName = Application.GetSaveAsFilename("NBN.txt", "Text Files
(*.txt), *.txt", , "Save NBN B62-003 as text file")
End Function
the dialog box is not openend.
How come? Does excel prohibit dialog boxes in functions?
The function is used as a worksheet function.
THank you veru much
Bart