Autres test de coeff point to pixel

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

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
 
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
 
Re, Oubli corrigé.
Code:
1,33333333333333
1
1566414987990.png
 
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
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
7
Affichages
880
Retour