Anfrage zu 32 und 64 bit
07.04.2025 14:09:19
chris b.
Könnt ihr mir helfen das dieses Programm auch unter Windows 11 64 Bit läuft ?
Vielen Lieben Dank!
Hier der Code :
Private Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function SetWindowPos Lib "user32" _
(ByVal hWnd As Long, ByVal hWndInsertAfter As Long, _
ByVal x As Long, ByVal y As Long, ByVal cx As Long, _
ByVal cy As Long, ByVal wFlags As Long) As Long
Sub auswahl()
UserForm1.Show
End Sub
Sub vordergrund()
cb = Cells(1, 1)
whandle = FindWindow(vbNullString, cb)
Call SetWindowPos(whandle, -1, 0, 0, 0, 0, 3)
AppActivate (cb)
'Unload UserForm1
'UserForm1.Hide
End Sub
Sub hintergrund()
cb = Cells(1, 1)
whandle = FindWindow(vbNullString, cb)
Call SetWindowPos(whandle, -2, 0, 0, 0, 0, 3)
End Sub
Anzeige