Sub test()
With ActiveWindow.Panes(1)
p1 = .PointsToScreenPixelsX(.Parent.VisibleRange.Cells(1).Left) * 0.75
p1 = p1 - (Application.Left * Abs(Application.Left > 0))
p2 = .PointsToScreenPixelsY(.Parent.VisibleRange.Cells(1).Top) * 0.75
p2 = p2 - (Application.Top * Abs(Application.Top > 0))
End With
MsgBox "les heading mesurent " & p1 & " Points" & vbCrLf & _
"mon badeau complet fait " & p2 & " Points"
With UserForm1
.Show 0
.Left = p1 + (Application.Left * Abs(Application.Left > 0))
.Top = p2 + (Application.Top * Abs(Application.Top > 0))
End With
End Sub