Code: Select all
Private Sub procDash_Click(Index As Integer)
If DSNExists("Af") Then
Dim SExcel As New Excel.Application
SExcel.Workbooks.Open ("L:\Af-Dash\Dashboard-MR.xls")
SExcel.Visible = True
Else
MsgBox "Af Does Not Exist On This Machine", vbInformation, "No Af"
End If
End Sub
Code: Select all
Sub CloseForceSave()
ThisWorkbook.Close savechanges:=True
End Sub
From anther pc I'm prompted for a "Save As" which is really annoying.
Perhaps I need a more efficient way to close the worksheet which will work uniformally over various pc's.
Any suggestions ?
Cheers