Алик писал(а):Код:
Clipboard.GetData(CF_BITMAP)
Можно подробнее как с этим работать в VBA?
Алик писал(а):Код:
Clipboard.GetData(CF_BITMAP)
Можно подробнее как с этим работать в VBA?
Private Declare Function EmptyClipboard Lib "user32" () As Long
Private Declare Function OpenClipboard Lib "user32" (ByVal hWnd As Long) As Long
Private Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Long) As Long
Private Declare Function SetClipboardData Lib "user32" (ByVal wFormat As Long, ByVal hMem As Long) As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function GetClipboardFormatName Lib "user32" Alias "GetClipboardFormatNameA" (ByVal wFormat As Long, ByVal lpString As String, ByVal nMaxCount As Long) As Long
Private Declare Function IsClipboardFormatAvailable Lib "user32" (ByVal wFormat As Long) As Long
Declare Function SetClipboardViewer Lib "user32" (ByVal hWnd As Long) As Long
Selection.Paste
Me.CommandButton1.Picture = LoadPicture("c:...\AAA.bmp")
Me.Image1.Picture = LoadPicture("c:...\AAA.bmp")
Сейчас этот форум просматривают: Google-бот и гости: 10