<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Infoment</author_name>
  <author_url>https://blog.hatena.ne.jp/Infoment/</author_url>
  <blog_title>Infomentのブログ ～Excel VBA奮闘記～</blog_title>
  <blog_url>https://infoment.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
    <anon>作ってみた</anon>
  </categories>
  <description>昨日、テキストボックスのサイズに合わせて、既存機能で中の文字サイズを変更しようとしたが出来なかった。 infoment.hatenablog.com無いものは仕方ない、作るとしよう。 作戦としては、こんな感じだ。 テキストボックスの大きさを一旦、文字の大きさピッタリにする（自動）。 フィット前後の比率から、文字の大きさ（仮）を得る。 文字の大きさ（仮）とテキストボックスを、少しずつ大きくする（ループ）。※テキストボックスの大きさは、文字の大きさに合わせて自動変更。 テキストボックスが元の大きさを超えた時点でループ終了。 文字の大きさを決定値に変更。テキストボックスの大きさを元に戻す。 実際に作…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2021%2F08%2F17%2F000649&quot; title=&quot;テキストボックスのサイズに合わせて、中の文字サイズを変更する - Infomentのブログ ～Excel VBA奮闘記～&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/I/Infoment/20210816/20210816233635.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-17 00:06:49</published>
  <title>テキストボックスのサイズに合わせて、中の文字サイズを変更する</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2021/08/17/000649</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
