Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PasteFace in VBA

Empfohlene Antworten

Hi,

ich habe folgendes Problem.

Ich möchte einen per VBA erstellten Menüeintrag in Word ein selbst erstelltes Icon hinzufügen.

Was ich bis jetzt rausgefunden habe ist, das sowas nur über die Zwischenablage geht, aber irgendwie funktioniert weder mein zugriff auf die Zwischenablage noch das Pasteface.

Hier ein Auszug aus meinem Code mein Code:

Private Declare Function CloseClipboard Lib "user32" () As Long

Private Declare Function EmptyClipboard Lib "user32" () As Long

Private Declare Function GetClipboardData Lib "user32" (ByVal Format As Long) As Long

Private Declare Function OpenClipboard Lib "user32" (ByVal Hwnd As Long) As Long

Private Declare Function SetClipboardData Lib "user32" (ByVal Format As Long, ByVal HMem As Long) As Long

...

Dim aEntry As CommandBarControl

Dim sFile As String

...

sFile = ActiveDocument.Path + "\open.bmp"

' Eintrag ins Menu erzeugen

Set aEntry = aMenu.Controls.Add(Type:=msoControlButton)

With aEntry

.Caption = "Test"

.Visible = True

If OpenClipboard(0) <> 0 Then

EmptyClipboard

SetClipboardData vbCFBitmap, LoadPicture(sFile)

CloseClipboard

End If

.PasteFace

End With

...

Irgendwelche Ideen?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.