Klicken Sie im Feld Prozedur des Codefensters auf das Modul, in dem Sie den Code platzieren möchten.
In the Procedure box of the code window, click the module where you want to place the code.
Mit TraceWriter kann ich Meldungen in das Protokollfenster unterhalb des Codefensters ausgeben.
The TraceWriter lets me output messages to the log window that's below the code window.
Betrachten Sie nun die zwei Dropdown-Listen am oberen Rand des Codefensters.
Now look at the two drop-down lists at the top of the Code window.
Öffnen des Codefensters in einem Datenbankmodelldiagramm
Open the Code window in a database model diagram
Bei diesem neuen VB-Editor tritt ein Problem auf, wenn Objektdeklarationen durch Auswahl aus dem Dropdownmenü am oberen Rand des Codefensters erstellt werden. Es wird folgende Fehlermeldung angezeigt: "Variable verwendet einen nicht unterstützten Automatisierungstyp in Visual Basic".
With this new VB editor, there's an issue with creating object declarations by choosing from the drop-down menu at the top of the code window resulting in an error: "Variable uses an Automation type not supported in Visual Basic".
Klicken Sie dazu am linken Rand des Codefensters, oder klicken Sie in den Code, und drücken Sie F9, oder wählen Sie im Menü Debuggen die Option Haltepunkt umschalten.
To do this, click in the left margin of the code window, or click in the code and press F9 or Toggle Breakpoint in the Debug menu.
Wählen Sie in der Liste Objekt oberhalb des Codefensters Workbook aus.
In the Object list above the Code window, select Workbook.
Klicken Sie im Feld Prozedur des Codefensters auf das Modul, in dem Sie den Code platzieren möchten.
In the Procedure box of the code window, click the module where you want to place the code.