<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiko-blog</author_name>
  <author_url>https://blog.hatena.ne.jp/hiko-blog/</author_url>
  <blog_title>Hiko.Blog  Excel VBA活用術</blog_title>
  <blog_url>https://hiko-blog.hatenadiary.com/</blog_url>
  <categories>
    <anon>VBA</anon>
  </categories>
  <description>Sub CopyData1() Dim sourceSheet As Worksheet Dim targetSheet As Worksheet Dim lastRow As Long ' ソースシート（コピー元のシート）とターゲットシート（コピー先のシート）を設定 Set sourceSheet = ThisWorkbook.Sheets(&quot;Sheet1&quot;) Set targetSheet = ThisWorkbook.Sheets(&quot;Sheet2&quot;) ' ソースシートの最終行を取得 lastRow = sourceSheet.Cells(sourceSheet.Rows.Count, &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiko-blog.hatenadiary.com%2Fentry%2F2024%2F03%2F19%2F220704&quot; title=&quot;Sheet1からSheet2に列AからGのデータをコピーする方法の例 - Hiko.Blog  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>2024-03-19 22:07:04</published>
  <title>Sheet1からSheet2に列AからGのデータをコピーする方法の例</title>
  <type>rich</type>
  <url>https://hiko-blog.hatenadiary.com/entry/2024/03/19/220704</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
