You are probably using Option Explicit so you have to put this
 Dim saveFileName As String
as first line of the code