mykulpasskwa
Board Regular
- Joined
- Mar 20, 2018
- Messages
- 66
Hey there, I set up an Application.GetSaveAsFilename and it successfully brings up the Save As dialogue box, however it doesn't actually save the file and the "Save as type:" only gives me the option of All Files (*.*) and won't let me select or save as .xlsm. Now I am saving this on a sharedrive, which hasn't been a problem in the past, so I'm just mentioning that but I don't think it's the cause. Anyone have any idea why it gives me the option to save but doesn't actually save the file?
VBA Code:
Sub Match()
Dim a As Currency
Dim b As Currency
Dim answer As Integer
Dim NUID As Variant
a = Worksheets("Sheet 1").Range("R24").Value
b = Worksheets("Sheet 1").Range("R25").Value
NUID = Worksheets("Sheet 1").Range("F2").Value
If b = 0 And a = 0 Then
Exit Sub
ElseIf Sheet2.Range("R24").Value = Sheet2.Range("R25").Value Then
MsgBox ("The Account Balance and Banner Balance Match." & vbNewLine & "Sheet balance is $ " & a & vbNewLine & "Banner balance is $ " & b)
answer = MsgBox("Would you like to save?", vbYesNo + vbQuestion)
If answer = vbYes Then
Application.GetSaveAsFilename (NUID & " - Account Overview")
Else
'do nothing
End If
End If
End Sub