Re : USF en showmodal et excel97 ??
🙁 J'ai testé le lien que tu m'a indiqué avec excel97
Ca marche, on peut se déplacer.
Je me suis dis, super, génial Bruno, mon sauveur.
Et bien pas tout à fait, je n'arrive pas à appliquer les codes
à mon fichier joint. Meme avec option explicit,
ou en créant un module, je continue à chercher
mais vraiment je suis perdu, Au Secours.
Ce serait tellement formidable si ca fonctionnait.
Je fait appel aux Cracks du forum.
Code du USF
Option Explicit
'stephen Bullen Excel97
Private Declare Function FindWindowA Lib "User32" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function EnableWindow Lib "User32" _
(ByVal hWnd As Long, ByVal bEnable As Long) As Long
Private Declare Function GetWindowLongA Lib "User32" _
(ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLongA Lib "User32" _
(ByVal hWnd As Long, ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Private Sub UserForm_Activate()
EnableWindow FindWindowA("XLMAIN", Application.Caption), 1
End Sub
Private Sub UserForm_Initialize()
Dim hWnd As Long
hWnd = FindWindowA(vbNullString, Me.Caption)
SetWindowLongA hWnd, -16, GetWindowLongA(hWnd, -16) Or &H20000
End Sub
Code du Module1
Option Explicit
Sub Lancer()
On Error GoTo fin 'juste au cas d'une clic , si USF deja affiché
UserForm1.Show
fin:
End Sub
Quoi faire avec tout ca ??😕