vb macro string width in pixel

前端 未结 9 1530
感动是毒
感动是毒 2020-12-09 06:25

How would you calculate the number of pixels for a String (in an arbitrary font), using an Excel VBA macro?

Related:

  • http://www.mrexcel.com/forum/excel
9条回答
  •  盖世英雄少女心
    2020-12-09 06:49

    I see GetLabelSize() method is wrong with Japanese character.

    Ex: With font 'MS Pゴシック' size 11

    'a' = 9 pixel 'あ' = 9 pixel

    But I see 'あ' is wider then 'a'.

提交回复
热议问题