Ceci est une page optimisée pour les mobiles. Cliquez sur ce texte pour afficher la vraie page.

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
 

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
372
Les cookies sont requis pour utiliser ce site. Vous devez les accepter pour continuer à utiliser le site. En savoir plus…