In diesem Beispiel wird davon ausgegangen, dass ein aktives Dokument im Visio-Anwendungsfenster vorhanden ist. Kopieren Sie im Visual Basic-Editor den folgenden Code in das Projekt ThisDocument
The example assumes that there is an active document in the Visio application window. Copy the following code into the ThisDocument project in the Visual Basic Editor
Der Objektkatalog stellt einen Schlüssel für die Features in Office-Programmen dar, die mithilfe von Code erweitert oder automatisiert werden können. Um den Objektkatalog anzuzeigen, klicken Sie im Visual Basic-Editor im Menü Ansicht auf Objektkatalog.
The Object Browser provides a key to the features in Office programs that you can extend or automate through code. To view the Object Browser, in the Visual Basic Editor, click Object Browser on the View menu.
Sie können zum Aufzeichnen einer eine Aktionsfolge ein Makro mithilfe der Makroaufzeichnung erstellen. Sie können Makros jedoch auch vollständig neu erstellen, indem Sie im Visual Basic-Editor den VBA-Code (Visual Basic für Applikationen) eingeben.
You can create a macro by using the macro recorder to record a sequence of actions, or you can create a macro from scratch by entering Visual Basic for Applications code in the Visual Basic Editor.
Sieh dir den Code deines Makros im Visual Basic Code-Editor an.
Haben Sie den VBA-Code (Microsoft Visual Basic für Applikationen) mit einem Kennwort geschützt, müssen Sie dieses Kennwort während der Konvertierung im Visual Basic-Editor bereitstellen.
If you have employed a password to help protect the Microsoft Visual Basic for Applications (VBA) code, you must supply the password in the Visual Basic Editor during conversion.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.