{"id":5464,"date":"2015-03-23T17:08:24","date_gmt":"2015-03-23T08:08:24","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=5464"},"modified":"2015-03-23T17:08:24","modified_gmt":"2015-03-23T08:08:24","slug":"vba%e3%81%8b%e3%82%89%e6%89%b1%e3%81%88%e3%82%8bdll%e3%82%92c%e3%81%a7%e6%9b%b8%e3%81%84%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=5464","title":{"rendered":"VBA\u304b\u3089\u6271\u3048\u308bDLL\u3092C#\u3067\u66f8\u3044\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p>\u4ee5\u524d\u66f8\u3044\u305f<a href=\"\/\/www.ka-net.org\/blog\/?p=5309\" title=\"SharpDevelop\u3067Excel\u7528COM\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u8a18\u4e8b<\/a>\u3067<a href=\"http:\/\/www.icsharpcode.net\/opensource\/sd\/\" title=\"SharpDevelop @ic#code\" target=\"_blank\">SharpDevelop<\/a>\u3092\u4f7f\u3063\u3066Excel\u7528\u306eCOM\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u6700\u8fd1\u306eWindows PC\u306b\u306f\u6a19\u6e96\u3067C#\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067(\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u3053\u3067\u306f\u305d\u3046\u3044\u3063\u305f\u74b0\u5883\u306f\u6a2a\u306b\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059)\u3001\u308f\u3056\u308f\u3056\u91cd\u3044IDE\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001\u30e1\u30e2\u5e33\u306a\u3069\u306e\u8efd\u3044\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3060\u3051\u3067\u3001VBA\u304b\u3089\u6271\u3048\u308b\u30de\u30cd\u30fc\u30b8\u30c9\u306aDLL\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">C#\u30b3\u30f3\u30d1\u30a4\u30e9(csc.exe)\u306e\u5834\u6240<\/h4>\n<p>C#\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5b9f\u4f53\u306f\u300c<span style=\"color: #ff0000; font-weight: bold;\">csc.exe<\/span>\u300d\u3067\u3001\u79c1\u306e\u74b0\u5883(Windows 7 32\u30d3\u30c3\u30c8\u7248)\u3060\u3068\u4e0b\u8a18\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727<\/li>\n<li>C:\\Windows\\Microsoft.NET\\Framework\\v3.5<\/li>\n<li>C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319<\/li>\n<\/ul>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b.NET Framework\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3084\u300132\u30d3\u30c3\u30c8\/64\u30d3\u30c3\u30c8\u306e\u9055\u3044\u3067\u5834\u6240\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u304c\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u300c<span style=\"color: #ff0000; font-weight: bold;\">csc.exe<\/span>\u300d\u3067\u7aef\u672b\u5185\u306e<a href=\"http:\/\/windows.microsoft.com\/ja-jp\/windows\/find-file-folder\" title=\"\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u691c\u7d22\u3059\u308b - Windows \u30d8\u30eb\u30d7\" target=\"_blank\">\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b<\/a>\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h4 class=\"style4a\">\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u308b\u3002<\/h4>\n<p>\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5834\u6240\u3092\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3067\u3001\u6b21\u306f\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">using System;\r\nusing System.Web;\r\nusing System.Text;\r\nusing System.ComponentModel;\r\nusing System.Runtime.InteropServices;\r\n\r\nnamespace EncodeAddIn {\r\n  &#x5B;ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsDual), Guid(&quot;8b54658b-feba-4b47-aab7-e0ad5b5b75fa&quot;)]\r\n  public interface IEncode {\r\n    &#x5B;Description(&quot;\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u307e\u3059\u3002&quot;)]\r\n    string EncodeUrl(string target, string enc);\r\n  }\r\n  \r\n  &#x5B;ClassInterface(ClassInterfaceType.None), ProgId(&quot;Encode.AddIn&quot;), Guid(&quot;6c261343-a165-4b5d-bd6d-c59e2d4d1ad5&quot;)]\r\n  public class Encode:IEncode {\r\n    \/\/\/ &lt;summary&gt;\r\n    \/\/\/ \u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u307e\u3059\u3002\r\n    \/\/\/ &lt;param name=&quot;target&quot;&gt;\u5bfe\u8c61\u3068\u306a\u308b\u6587\u5b57\u5217\u3067\u3059\u3002&lt;\/param&gt;\r\n    \/\/\/ &lt;param name=&quot;enc&quot;&gt;\u30a8\u30f3\u30b3\u30fc\u30c9\u65b9\u5f0f\u3092\u6587\u5b57\u5217\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002&lt;\/param&gt;\r\n    \/\/\/ &lt;\/summary&gt;\r\n    public string EncodeUrl(string target, string enc) {\r\n      try {\r\n        return HttpUtility.UrlEncode(target, Encoding.GetEncoding(enc));\r\n      } catch (Exception e) {\r\n        return e.Message;\r\n      }\r\n    }\r\n  }\r\n}<\/pre>\n<p>\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u305f<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/system.text.encoding.aspx\" title=\"Encoding \u30af\u30e9\u30b9 (System.Text)\" target=\"_blank\">\u30a8\u30f3\u30b3\u30fc\u30c9\u65b9\u5f0f<\/a>\u3067URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\u3060\u3051\u306e\u3001\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u8cbc\u308a\u4ed8\u3051\u305f\u5f8c\u3001<span style=\"color: #ff0000; font-weight: bold;\">UTF-8<\/span>\u5f62\u5f0f\u3067\u4fdd\u5b58\u3057\u307e\u3059(\u4fdd\u5b58\u5148\u306f\u3068\u308a\u3042\u3048\u305a <strong>C:\\Test\\cs\\EncodeAddIn.cs<\/strong> \u30d5\u30a1\u30a4\u30eb)\u3002<\/p>\n<p>VBA\u304b\u3089\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u3001ComVisible\u3084ClassInterface\u3068\u3044\u3063\u305f\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u8a73\u3057\u304f\u306fsupermab\u6c0f\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u300c<a href=\"http:\/\/supermab.com\/wp\/excel-%E3%81%8B%E3%82%89%E4%BD%BF%E3%81%86%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8dll-%E3%82%92%E4%BD%9C%E3%82%8B%E3%80%82\/\" title=\"Excel \u304b\u3089\u4f7f\u3046\u30de\u30cd\u30fc\u30b8DLL \u3092\u4f5c\u308b\u3002 | supermab's blog\" target=\"_blank\">Excel \u304b\u3089\u4f7f\u3046\u30de\u30cd\u30fc\u30b8DLL \u3092\u4f5c\u308b\u3002<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/>\n\u5fc5\u8981\u306a\u8aac\u660e\u304c\u5927\u4f53\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u4e2d\u306b\u3042\u308bGuid\u5c5e\u6027\u306e\u5024\u306f\u300c<a href=\"http:\/\/www.guidgen.com\/\" title=\"Generate GUIDs online\" target=\"_blank\">Generate GUIDs online<\/a>\u300d\u7b49\u306e\u30b5\u30fc\u30d3\u30b9\u3084\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u751f\u6210\u3057\u305f\u3082\u306e\u3092\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 class=\"style4a\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/h4>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u66f8\u3051\u305f\u3089\u3001\u6b21\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u4f5c\u696d\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9 \u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8d77\u52d5\u3057\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b csc.exe\u306e\u30d1\u30b9\u3084\u51fa\u529b\u5148\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5834\u6240\u306f\u74b0\u5883\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><textarea cols=60 rows=2 onclick=\"this.focus();this.select();\">&#34;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe&#34; \/target:library \/out:&#34;C:\\Test\\cs\\EncodeAddIn.dll&#34; &#34;C:\\Test\\cs\\EncodeAddIn.cs&#34;<\/textarea><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_01.jpg\" alt=\"csharp_vba_dll_01\" width=\"677\" height=\"159\" class=\"alignnone size-full wp-image-5465\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_01.jpg 677w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_01-300x70.jpg 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a><\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u7d42\u308f\u308b\u3068\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306bDLL\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_02.jpg\" alt=\"csharp_vba_dll_02\" width=\"461\" height=\"410\" class=\"alignnone size-full wp-image-5466\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_02.jpg 461w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_02-300x267.jpg 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u3001target\u3084out\u3068\u3044\u3063\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001csc.exe\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u300c<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/6ds95cz0.aspx\" title=\"\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\u306e C# \u30b3\u30f3\u30d1\u30a4\u30e9 \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4e00\u89a7\" target=\"_blank\">C# \u30b3\u30f3\u30d1\u30a4\u30e9 \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4e00\u89a7<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 class=\"style4a\">RegAsm.exe(\u30a2\u30bb\u30f3\u30d6\u30ea\u767b\u9332\u30c4\u30fc\u30eb)\u306b\u3088\u308bDLL\u306e\u767b\u9332<\/h4>\n<p>\u4f5c\u6210\u3057\u305fDLL\u30d5\u30a1\u30a4\u30eb\u306f<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/tzat5yw6.aspx\" title=\"RegAsm.exe (\u30a2\u30bb\u30f3\u30d6\u30ea\u767b\u9332\u30c4\u30fc\u30eb)\" target=\"_blank\">RegAsm.exe (\u30a2\u30bb\u30f3\u30d6\u30ea\u767b\u9332\u30c4\u30fc\u30eb)<\/a>\u3092\u4f7f\u3063\u3066\u30ec\u30b8\u30b9\u30c8\u30ea\u306b\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>RegAsm.exe\u306f\u3001\u79c1\u306e\u74b0\u5883(Windows 7 32\u30d3\u30c3\u30c8\u7248)\u3060\u3068\u4e0b\u8a18\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727<\/li>\n<li>C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u624b\u9806\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30b3\u30de\u30f3\u30c9 \u30d7\u30ed\u30f3\u30d7\u30c8\u3092<span style=\"color: #ff0000; font-weight: bold;\">\u7ba1\u7406\u8005\u6a29\u9650\u3067<\/span>\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001DLL\u30d5\u30a1\u30a4\u30eb\u306e\u767b\u9332\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b RegAsm.exe\u306e\u30d1\u30b9\u3084\u51fa\u529b\u5148\u3001DLL\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\u74b0\u5883\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><textarea cols=60 rows=2 onclick=\"this.focus();this.select();\">&#34;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\RegAsm.exe&#34; &#34;C:\\Test\\cs\\EncodeAddIn.dll&#34; \/tlb \/codebase<\/textarea><\/p>\n<li>\u53b3\u5bc6\u306a\u540d\u524d\u4ed8\u304d\u30a2\u30bb\u30f3\u30d6\u30ea\u3067\u306f\u306a\u3044\u306e\u3067\u8b66\u544a\u306f\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u767b\u9332\u81ea\u4f53\u306f\u7121\u4e8b\u306b\u7d42\u308f\u308a\u307e\u3059(registered successfully)\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_03.jpg\" alt=\"csharp_vba_dll_03\" width=\"677\" height=\"273\" class=\"alignnone size-full wp-image-5467\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_03.jpg 677w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_03-300x121.jpg 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a>\n<\/ol>\n<p>\u9006\u306bDLL\u30d5\u30a1\u30a4\u30eb\u306e\u767b\u9332\u3092\u89e3\u9664\u3059\u308b\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u300c<span style=\"color: #ff0000; font-weight: bold;\">\/u<\/span>\u300d(\/unregister)\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066RegAsm.exe\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><textarea cols=60 rows=2 onclick=\"this.focus();this.select();\">&#34;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\RegAsm.exe&#34; &#34;C:\\Test\\cs\\EncodeAddIn.dll&#34; \/tlb \/u<\/textarea><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_04.jpg\" alt=\"csharp_vba_dll_04\" width=\"677\" height=\"202\" class=\"alignnone size-full wp-image-5468\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_04.jpg 677w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_04-300x90.jpg 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a><\/p>\n<p>\u3053\u306e\u9762\u5012\u306aRegAsm.exe\u306b\u3088\u308b\u767b\u9332\u30fb\u89e3\u9664\u4f5c\u696d\u3092\u30c9\u30e9\u30c3\u30b0&#038;\u30c9\u30ed\u30c3\u30d7\u3067\u884c\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4ee5\u524d\u66f8\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u4e0b\u8a18\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3082\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u30fb\u30c9\u30e9\u30c3\u30b0\u3055\u308c\u305f\u30de\u30cd\u30fc\u30b8\u30c9DLL\u3092RegAsm\u3067\u767b\u9332\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><br \/>\n<a href=\"https:\/\/kinuasa.wordpress.com\/2011\/04\/07\/%e3%83%89%e3%83%a9%e3%83%83%e3%82%b0%e3%81%95%e3%82%8c%e3%81%9f%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%89dll%e3%82%92regasm%e3%81%a7%e7%99%bb%e9%8c%b2%e3%81%99%e3%82%8b%e3%82%b9%e3%82%af%e3%83%aa\/\" title=\"\u30c9\u30e9\u30c3\u30b0\u3055\u308c\u305f\u30de\u30cd\u30fc\u30b8\u30c9DLL\u3092RegAsm\u3067\u767b\u9332\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">https:\/\/kinuasa.wordpress.com\/2011\/04\/07\/%e3%83%89%e3%83%a9%e3%83%83%e3%82%b0%e3%81%95%e3%82%8c%e3%81%9f%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%89dll%e3%82%92regasm%e3%81%a7%e7%99%bb%e9%8c%b2%e3%81%99%e3%82%8b%e3%82%b9%e3%82%af%e3%83%aa\/<\/a><\/p>\n<p>\u4ee5\u4e0a\u306e\u4f5c\u696d\u3067\u3001C#\u3067\u66f8\u3044\u305fDLL\u3092VBA\u304b\u3089\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">VBA\u304b\u3089\u306e\u547c\u3073\u51fa\u3057<\/h4>\n<p>VBE\u306e\u53c2\u7167\u8a2d\u5b9a\u3092\u958b\u304f\u3068\u3001RegAsm.exe\u3067\u767b\u9332\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_05.jpg\" alt=\"csharp_vba_dll_05\" width=\"469\" height=\"323\" class=\"alignnone size-full wp-image-5469\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_05.jpg 469w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_05-300x207.jpg 300w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/a><\/p>\n<p>\u95a2\u6570\u3082\u3061\u3083\u3093\u3068\u8868\u793a\u3055\u308c\u3001<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_06.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_06.jpg\" alt=\"csharp_vba_dll_06\" width=\"356\" height=\"121\" class=\"alignnone size-full wp-image-5470\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_06.jpg 356w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_06-300x102.jpg 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/a><\/p>\n<p>\u30a4\u30f3\u30c6\u30ea\u30bb\u30f3\u30b9\u3082\u52b9\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_07.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_07.jpg\" alt=\"csharp_vba_dll_07\" width=\"451\" height=\"160\" class=\"alignnone size-full wp-image-5471\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_07.jpg 451w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_07-300x106.jpg 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_08.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_08.jpg\" alt=\"csharp_vba_dll_08\" width=\"404\" height=\"250\" class=\"alignnone size-full wp-image-5472\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_08.jpg 404w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_08-300x186.jpg 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/a><\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306b\u30ec\u30a4\u30c8\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_09.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_09.jpg\" alt=\"csharp_vba_dll_09\" width=\"599\" height=\"198\" class=\"alignnone size-full wp-image-5473\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_09.jpg 599w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/csharp_vba_dll_09-300x99.jpg 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u3084\u30ec\u30b8\u30b9\u30c8\u30ea\u3078\u306e\u767b\u9332\u3068\u3044\u3063\u305f\u3001\u591a\u5c11\u306e\u624b\u9593\u306f\u639b\u304b\u308a\u307e\u3059\u304c\u3001.NET\u306e\u5de8\u5927\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u30e1\u30ea\u30c3\u30c8\u306f\u975e\u5e38\u306b\u5927\u304d\u304f\u3001VBA\u3067\u66f8\u304f\u3068\u7169\u96d1\u306b\u306a\u308b\u51e6\u7406\u3082.NET\u3067\u66f8\u3051\u3070\u307b\u3093\u306e\u6570\u884c\u3067\u7d42\u308f\u308b\uff01\u30fb\u30fb\u30fb\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001VBA\u3067\u9577\u3005\u3068\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306e\u304c\u82e6\u624b\u306a\u65b9\u306f\u4e00\u5ea6\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h4 class=\"style4a\">\u53c2\u8003Web\u30b5\u30a4\u30c8<\/h4>\n<ul>\n<li>Excel \u304b\u3089\u4f7f\u3046\u30de\u30cd\u30fc\u30b8DLL \u3092\u4f5c\u308b\u3002 | supermab&#8217;s blog<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/supermab.com\/wp\/excel-%E3%81%8B%E3%82%89%E4%BD%BF%E3%81%86%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8dll-%E3%82%92%E4%BD%9C%E3%82%8B%E3%80%82\/\" target=\"_blank\" title=\"Excel \u304b\u3089\u4f7f\u3046\u30de\u30cd\u30fc\u30b8DLL \u3092\u4f5c\u308b\u3002 | supermab's blog\">http:\/\/supermab.com\/wp\/excel-%E3%81%8B%E3%82%89%E4%BD%BF%E3%81%86%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8dll-%E3%82%92%E4%BD%9C%E3%82%8B%E3%80%82\/<\/a><\/li>\n<li>Windows 7 \u306e csc.exe \u3067\u904a\u3093\u3067\u307f\u308b | PaePoi<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/palepoli.skr.jp\/wp\/2010\/01\/12\/windows-7-%E3%81%AE-csc-exe-%E3%81%A7%E9%81%8A%E3%82%93%E3%81%A7%E3%81%BF%E3%82%8B\/\" target=\"_blank\" title=\"Windows 7 \u306e csc.exe \u3067\u904a\u3093\u3067\u307f\u308b | PaePoi\">http:\/\/palepoli.skr.jp\/wp\/2010\/01\/12\/windows-7-%E3%81%AE-csc-exe-%E3%81%A7%E9%81%8A%E3%82%93%E3%81%A7%E3%81%BF%E3%82%8B\/<\/a><\/li>\n<li>Visual Studio\u3067\u306f\u306a\u304f\u3001Windows\u4ed8\u5c5e\u306ecsc.exe \u3060\u3051\u3067C#\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b &#8211; Qiita<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/qiita.com\/toshirot\/items\/dcf7809007730d835cfc\" target=\"_blank\" title=\"Visual Studio\u3067\u306f\u306a\u304f\u3001Windows\u4ed8\u5c5e\u306ecsc.exe \u3060\u3051\u3067C#\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b - Qiita\">http:\/\/qiita.com\/toshirot\/items\/dcf7809007730d835cfc<\/a><\/li>\n<li>VBA\u307e\u305f\u306fVBS\u304b\u3089COM\u7d4c\u7531\u3067\u4f7f\u7528\u3067\u304d\u308b.NET\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f5c\u6210\u65b9\u6cd5 &#8211; Qiita<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/qiita.com\/mima_ita\/items\/efcd1a6ea86f09047984\" target=\"_blank\" title=\"VBA\u307e\u305f\u306fVBS\u304b\u3089COM\u7d4c\u7531\u3067\u4f7f\u7528\u3067\u304d\u308b.NET\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f5c\u6210\u65b9\u6cd5 - Qiita\">http:\/\/qiita.com\/mima_ita\/items\/efcd1a6ea86f09047984<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u4ee5\u524d\u66f8\u3044\u305f\u8a18\u4e8b\u3067SharpDevelop\u3092\u4f7f\u3063\u3066Excel\u7528\u306eCOM\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u6700\u8fd1\u306eWindows PC\u306b\u306f\u6a19\u6e96\u3067C#\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067(\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u3053 [&hellip;]","protected":false},"author":1,"featured_media":7111,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u4eca\u3055\u3089\u306a\u30cd\u30bf\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 [VBA\u304b\u3089\u6271\u3048\u308bDLL\u3092C\uff03\u3067\u66f8\u3044\u3066\u307f\u308b\u3002]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,48,49,58],"tags":[],"class_list":["post-5464","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-word-office","category-powerpoint"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Excel.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1q8","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5464"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5464\/revisions"}],"predecessor-version":[{"id":5476,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5464\/revisions\/5476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7111"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}