Beim Debuggen habe ich das Problem, wenn ich Excel binde um Daten in ein Excel-Sheet einzutragen, bei jeder Programmänderung neu starten muß.
Bei anderen ProgrammSubs kann ich ändern ohne einen Neustart.
Immer wenn ich Excel verwende, kommt das Problem.
Error 1 Unable to apply this change while debugging. A method containing usage of an embedded interop type/member was affected. You must revert the change or stop the debugging session. To enable Edit and Continue, try setting Embed Interop Types to False for COM references when debugging. K:\PrgEntw\NTVBSource2010\KollektivVerwaltung\KollektivVerwaltung\MainForm.vb 593 17 KollektivVerwaltung
Ich soll 'Embed Interop Types ' = false stellen, nur wo.
Hier mal ein kleiner Ausschnitt meines Programmes.
'Try Dim xlAddi As New Excel.Application
xlAddi.Application.Visible = False xlAddi.Application.DisplayAlerts = False xlAddi.Caption = "EinzelSchädigungen für ein gerechnetes Modul" xlAddi.SheetsInNewWorkbook = 1
If xlAddi.Application.Workbooks.Count < 1 Then xlAddi.Application.Workbooks.Add() End If