<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>.Net開発</anon>
    <anon>C#</anon>
    <anon>Excel</anon>
  </categories>
  <description>以前に、.Net(C#)アプリからExcelのVBAを呼び出したい(遅延バインディング)で、C#からマクロを実行する方法を書きました。今回は、より一般的なセルへの読み書き方法のメモです。 開発マシンのExcelのバージョンに左右されないように遅延バインディングでアクセスします。そのためコードは煩雑ですが、考え方としてはシンプルです。 とりあえず、Excelファイル開いて、セルに読み書きして保存するというコードのサンプルです。(C#) //COM参照変数定義 object oExcel = null; object oBooks = null; object oBook = null; obje…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2018%2F03%2F10%2F203000_1&quot; title=&quot;(.Net)C#から遅延バインディングでExcelファイルに読み書きする - 3流プログラマのメモ書き&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-03-10 20:30:00</published>
  <title>(.Net)C#から遅延バインディングでExcelファイルに読み書きする</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2018/03/10/203000_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
