Sub testxx()
Dim P1#, P2
With ActiveWindow.Panes(1)
P1 = (.PointsToScreenPixelsX(.Parent.VisibleRange.Cells(1).Left) * 0.75)
With Application
If Application.Left < 0 Then
' j annule la reduction du left negatif de app si le mode windowstate est xlmaximized
If .WindowState = xlMaximized Then ML = 0 Else ML = Application.Left
P2 = P1 - ML
Else
P2 = P2 - Application.Left
End If
End With
End With
MsgBox "l 'application est à " & Application.Left & " de left " & vbCrLf & _
"donc le calcul devrait être " & vbTab & P1 & " moins " & Application.Left & vbCrLf & _
"le calcul réellement effectué est :" & vbTab & P1 & " moins " & ML & vbCrLf & _
"le HeadingWeight = " & P2 & " Point"
End Sub