Option Compare Text
#If VBA7 Then
Declare PtrSafe Function GetWindowText Lib "user32" Alias "GetWindowTextA" _
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Declare PtrSafe Function EnumWindows Lib "user32" _
(ByVal lpEnumFunc As LongPtr, ByVal Param As Long) As Long
Declare PtrSafe Function IsWindowVisible Lib "user32" _
(ByVal hwnd As Long) As Long
Declare PtrSafe Function EnumDisplayMonitors Lib "user32" _
(ByVal hDC As Long, lprcClip As Any, ByVal lpfnEnum As LongPtr, dwData As Long) As Long
#Else
Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Declare Function EnumWindows Lib "user32" _
(ByVal lpEnumFunc As Long, ByVal Param As Long) As Long
Declare Function IsWindowVisible Lib "user32" _
(ByVal hwnd As Long) As Long
Declare Function EnumDisplayMonitors Lib "user32" _
(ByVal hDC As Long, lprcClip As Any, ByVal lpfnEnum As Long, dwData As Long) As Long
#End If
Dim Results As Dictionary
Dim Criteria As String
Sub Msg_Verrue()
UserConfirm _
"Proposition pour le nom du concours du jour : " & _
Format(Now, "DDMMYYYY") & "_" & Environ("COMPUTERNAME"), , _
"vous pouvez faire Ctrl+v (coller)", _
"dans la zone ", _
"""Tapez ici le nom de votre nouveau concours""", _
"de Gc_Concours", , _
"OK", "IMG"
End Sub