Sub speichern_mit_abfrage()
Dim Fso
Dim strSpeichername As String
Dim strAbfrage As String
strSpeichername = Sheets("-1-").Cells(5, 1) & ".xls"
Set Fso = CreateObject("Scripting.FileSystemObject")
Application.DisplayAlerts = False
If Fso.fileexists("C:\Test\" & strSpeichername) Then
strAbfrage = MsgBox("Soll die vorhandene Arbeitsmappe " & strSpeichername & " überschrieben werden", vbYesNoCancel)
If strAbfrage = vbYes Then ThisWorkbook.Save
Else
ThisWorkbook.SaveAs "C:\Test\" & strSpeichername
End If
Application.DisplayAlerts = True
End Sub
Sub speichern_mit_abfrage()
Dim Fso
Dim strSpeichername As String
Dim strAbfrage As String
strSpeichername = Sheets("-1-").Cells(5, 1) & ".xls"
Set Fso = CreateObject("Scripting.FileSystemObject")
Application.DisplayAlerts = False
If Fso.fileexists("C:\Test\" & strSpeichername) Then
strAbfrage = MsgBox("Soll die vorhandene Arbeitsmappe " & strSpeichername & " überschrieben werden", vbYesNoCancel)
If strAbfrage = vbYes Then
If ThisWorkbook.Name = strSpeichername Then
ThisWorkbook.Save
Else
ThisWorkbook.SaveAs "C:\Test\" & strSpeichername
End If
End If
Else
ThisWorkbook.SaveAs "C:\Test\" & strSpeichername
End If
Application.DisplayAlerts = True
End Sub
Makros - zweiten Drucker als Symbol in die Symbolleiste einfügen
Mikoop 24.11.2006 - 4090 Hits - 1 Antwort
Word makro
Chrigel 12.08.2007 - 32 Hits - 3 Antworten
Makro Ausstieg - die 2
Tomschi 29.08.2007 - 46 Hits - 6 Antworten
Exception Processing Message fehler beim Starten von Windows Xp
xavieffm 03.01.2008 - 101 Hits - 1 Antwort
Makro für alle Tabellenblätter verfügbar machen
dieter1958 12.01.2008 - 107 Hits - 7 Antworten