<?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>
    <anon>事件簿</anon>
  </categories>
  <description>先日 Excel について、ある調査を依頼されました。カメラ機能で作成した図を含むシートについて、同シートをコピーして新たなブックを作成したところ、この図のサイズが勝手に変わってしまうというのです。この問題について、オブジェクトの固定などで解決を試みましたが上手くいかず、提出期限を考えると時間切れの状態に。そこで、真の解決方法には至らないまま、とりあえず以下の方法でお茶を濁すことにしました。 シートのコピーをマクロで行う。 コピー前に、シート内の Shape 全てについて位置とサイズ情報を記録。 コピー後に、記録した情報を同 Shape に反映する。 まず、クラスモジュールを二つ準備します。↓…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2018%2F08%2F23%2F071740&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-23 07:17:40</published>
  <title>「シートをコピーして新たなブックを作成したらサイズが変わる」事件（未解決）</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2018/08/23/071740</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
