Großes Problem
03.02.2004 18:57:12
Maren
Excel.exe Zugriffsverletzung(0xc0000005), Adresse: 0x3006ad15
Weiß jemand von Euch an was das liegen kann. Der Code ist doch okay. Man oh Mann, Schei... Excel
Sub Rechnenbeenden und Speichern()
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
ActiveWorkbook.PrecisionAsDisplayed = False
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Dim WB
If Workbooks.Count > 1 Then
For Each WB In Application.Workbooks
If WB.Name <> ActiveWorkbook.Name Then
WB.Save
WB.Close
End If
Next
End If
Range("C1").Select
If Len(ActiveCell) = 0 Then
MsgBox ("Bitte Name und Datum eingeben
Beispiel: >Name_Datum<")
Else
ActiveWorkbook.PrecisionAsDisplayed = False
ActiveWorkbook.SaveAs Filename:="C:\K\" & ActiveCell() & ".xls"
ChDir "C:\Konformität"
Workbooks.Open Filename:="C:\D\S.xls"
ThisWorkbook.Close False
End If
End Sub
Liebe Grüße Maren