Autres test de coeff point to pixel

patricktoulon

XLDnaute Barbatruc
bonjour a tous
il me faudrait un retour sur ce que ca donne en EXCEL 32 et 64 bit
VB:
ppx = (ActiveWindow.ActivePane.PointsToScreenPixelsX(Cells.Width) - ActiveWindow.ActivePane.PointsToScreenPixelsX(0)) / Cells.Width
    MsgBox ppx

ou
Code:
ppx = (ActiveWindow.PointsToScreenPixelsX(Cells.Width) - ActiveWindow.PointsToScreenPixelsX(0)) / Cells.Width
    MsgBox ppx
testez les deux SVP merci pour les retours
 

Simply

XLDnaute Occasionnel
bonjour

Sub Test_Office_365_64() ppx = (ActiveWindow.ActivePane.PointsToScreenPixelsX(Cells.Width) - ActiveWindow.ActivePane.PointsToScreenPixelsX(0)) / Cells.Width MsgBox ppx 'msgbox 1,33333333333333 ppx = (ActiveWindow.PointsToScreenPixelsX(Cells.Width) - ActiveWindow.PointsToScreenPixelsX(0)) / Cells.Width MsgBox ppx 'msgbox 1 End Sub
 

mapomme

XLDnaute Barbatruc
Supporter XLD
Re, Oubli corrigé.
Code:
1,33333333333333
1
1566414987990.png
 

Staple1600

XLDnaute Barbatruc
Bonjour le fil

Voilà, idem que les autres, rien à ajouter ;)
VB:
Sub Test_XL2K13_W10_64bits()
Dim Wh
Wh = Cells.Width
With ActiveWindow
ppx = (.ActivePane.PointsToScreenPixelsX(Wh) - .ActivePane.PointsToScreenPixelsX(0)) / Wh
ppz = (.PointsToScreenPixelsX(Wh) - .PointsToScreenPixelsX(0)) / Wh
End With
MsgBox ppx & Chr(13) & ppz
End Sub
 

Discussions similaires

Réponses
7
Affichages
346