Hallo
Ich habe da ein kleines (eventuell auch ein größeres) Problem mit VBA und Excel
Ich schreibe zuerst die Auszuge aus dem Code und komme dann zum Fehler (Problem)
Dim oxl As Excel.Application
Set oxl = New Excel.Application
oxl.Visible = False
oxl.Workbooks.Add
…
oxl.Workbooks(1).Worksheets(„Tabelle1“).Cells(100, 14).FormulaR1C1 = „=10“
…
oxl.Workbooks(1).Close
oxl.Quit
Ich habe jede Menge Aufrufe in der Form von oxl.Workbooks(1).Worksheets(„Tabelle1“).Cells(100, 15).FormulaR1C1 = „=10“ im Programm normal funktionieren die alle aber ab eine bestimmten Anzahl gehen die auf einmal nicht mehr ich kann allerdings nicht sagen warum und es kommt folgende Fehlermeldung:
"
Die Aktion konnte nicht beendet werden, da Microsoft Excel - Mappe1 (Microsoft Excel - Mappe1) nicht antwortet. Wählen Sie Wechseln zu, um zu Microsoft Excel - Mappe1 zu wechseln und das Problem zu lösen.
"
So gehe ich jetzt auf die Excelmappe funktioniert alles in der Mappe wieder nur die VB Zeile kann nicht mehr ausgeführt werden.
Das Lustige ist das Problem tritt bei Excel 2007 auf die Frage ist jetzt warum tritt das auf und was kann ich dagegen tun
mit Excel 2003 gibt’s da kein Problem und das Programm läuft Problemlos von Anfang bis zum Ende.
Hat jemand dazu eine Idee
mfg
Andreas