{"id":14898,"date":"2022-09-13T12:00:32","date_gmt":"2022-09-13T03:00:32","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=14898"},"modified":"2022-09-13T16:53:42","modified_gmt":"2022-09-13T07:53:42","slug":"power-automate-for-desktopvsto%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e5%86%85%e3%81%ae%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=14898","title":{"rendered":"[Power Automate for desktop]VSTO\u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/powerusers.microsoft.com\/t5\/Power-Automate-Desktop\/bd-p\/MPADesktop\" title=\"Power Automate Desktop - Power Platform Community\" target=\"_blank\" rel=\"noopener\">Power Platform Community<\/a>\u306bPower Automate for desktop(PAD)\u306e\u30d5\u30ed\u30fc\u3067Excel\u306eVSTO\u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u3044\u3001\u3068\u306e\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>Hello, I am trying to do the same thing except my macro is stored in a VSTO add-in for Excel which I created in Visual Studio.  Can anyone tell me what I should use as the &#8220;add-in name&#8221; in the Macro field for PAD in this case?<\/p><\/blockquote>\n<p><a href=\"https:\/\/powerusers.microsoft.com\/t5\/Power-Automate-Desktop\/How-to-Run-addin-macro-on-an-Excel-by-PAD\/m-p\/1764658\/highlight\/true#M17884\" title=\"Re: How to Run addin-macro on an Excel by PAD - Power Platform Community\" target=\"_blank\" rel=\"noopener\">https:\/\/powerusers.microsoft.com\/t5\/Power-Automate-Desktop\/How-to-Run-addin-macro-on-an-Excel-by-PAD\/m-p\/1764658\/highlight\/true#M17884<\/a> \u3088\u308a<\/p>\n<p>\u500b\u4eba\u7684\u306b\u306f\u3001\u3053\u308c\u306f\u30a2\u30c9\u30a4\u30f3\u5074\u306e\u5b9f\u88c5\u306b\u3088\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18Docs\u8cc7\u6599\u306e\u3088\u3046\u306b\u5916\u90e8\u304b\u3089\u547c\u3073\u51fa\u305b\u308b\u4ed5\u69d8(\u30af\u30e9\u30b9\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u516c\u958b\u3001<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/dotnet\/api\/microsoft.office.tools.addinbase.requestcomaddinautomationservice?WT.mc_id=M365-MVP-4029057&#038;view=vsto-2017\" title=\"AddInBase.RequestComAddInAutomationService \u30e1\u30bd\u30c3\u30c9 (Microsoft.Office.Tools) | Microsoft Docs\" target=\"_blank\" rel=\"noopener\">RequestComAddInAutomationService<\/a>\u30e1\u30bd\u30c3\u30c9\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9)\u3067\u3042\u308c\u3070\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3084\u30de\u30af\u30ed\u304b\u3089\u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/calling-code-in-vsto-add-ins-from-other-office-solutions?WT.mc_id=M365-MVP-4029057\" target=\"_blank\" rel=\"external nofollow noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=docs.microsoft.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">docs.microsoft.com<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Fvisualstudio%2Fvsto%2Fcalling-code-in-vsto-add-ins-from-other-office-solutions%3FWT.mc_id%3DM365-MVP-4029057?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">\u4ed6\u306e Office \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u304b\u3089 VSTO \u30a2\u30c9\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u3059 - Visual Studi...<\/div><div class=\"lkc-url\" title=\"https:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/calling-code-in-vsto-add-ins-from-other-office-solutions?WT.mc_id=M365-MVP-4029057\">https:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/calling-code-in-vsto-add-ins-from-other-office-solutions?WT.mc_id=M365-MVP-4029057<\/div><div class=\"lkc-excerpt\">\u4ed6\u306e Microsoft Office \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u542b\u3080\u4ed6\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306b VSTO \u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u516c\u958b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/walkthrough-calling-code-in-a-vsto-add-in-from-vba?WT.mc_id=M365-MVP-4029057\" target=\"_blank\" rel=\"external nofollow noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=docs.microsoft.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">docs.microsoft.com<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Fvisualstudio%2Fvsto%2Fwalkthrough-calling-code-in-a-vsto-add-in-from-vba%3FWT.mc_id%3DM365-MVP-4029057?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb : VSTO \u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30b3\u30fc\u30c9\u3092 VBA \u304b\u3089\u547c\u3073\u51fa\u3059 - Visual Studio (...<\/div><div class=\"lkc-url\" title=\"https:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/walkthrough-calling-code-in-a-vsto-add-in-from-vba?WT.mc_id=M365-MVP-4029057\">https:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/walkthrough-calling-code-in-a-vsto-add-in-from-vba?WT.mc_id=M365-MVP-4029057<\/div><div class=\"lkc-excerpt\">VSTO \u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u3001Visual Basic for Applications (VBA) \u30a2\u30c9\u30a4\u30f3\u3084 COM VSTO \u30a2\u30c9\u30a4\u30f3\u306a\u3069\u3001\u4ed6\u306e Microsoft Office \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u516c\u958b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">'\u5b9f\u884c\u4e2d\u306eExcel\u3067VSTO\u30a2\u30c9\u30a4\u30f3\u306e\u30e1\u30bd\u30c3\u30c9\u5b9f\u884c\r\n'\u5bfe\u8c61\u30a2\u30c9\u30a4\u30f3\uff1ahttps:\/\/docs.microsoft.com\/ja-jp\/visualstudio\/vsto\/walkthrough-calling-code-in-a-vsto-add-in-from-vba\r\nOption Explicit\r\n\r\nWith GetObject(, &quot;Excel.Application&quot;)\r\n  Dim addIn: Set addIn = Nothing 'COMAddIn\r\n  On Error Resume Next\r\n  Set addIn = .COMAddIns(&quot;ExcelImportData&quot;)\r\n  On Error GoTo 0\r\n  If Not addIn Is Nothing Then addIn.Object.ImportData\r\nEnd With<\/pre>\n<p>\u3042\u308b\u3044\u306f\u3053\u306e\u3088\u3046\u306a\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u30ea\u30dc\u30f3UI\u304b\u3089\u51e6\u7406\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001UI\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e0b\u8a18\u306f\u9078\u629e\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u3088\u3063\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u308b\u5b9f\u884c\u3068UI\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u308b\u5b9f\u884c\u3092\u5207\u308a\u66ff\u3048\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_01.jpg\" alt=\"\" width=\"755\" height=\"895\" class=\"alignnone size-full wp-image-14899\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_01.jpg 755w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_01-253x300.jpg 253w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_02.jpg\" alt=\"\" width=\"620\" height=\"707\" class=\"alignnone size-full wp-image-14900\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_02.jpg 620w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_02-263x300.jpg 263w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_03.jpg\" alt=\"\" width=\"620\" height=\"445\" class=\"alignnone size-full wp-image-14901\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_03.jpg 620w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_03-300x215.jpg 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_04.jpg\" alt=\"\" width=\"712\" height=\"430\" class=\"alignnone size-full wp-image-14902\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_04.jpg 712w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_04-300x181.jpg 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_05.jpg\" alt=\"\" width=\"713\" height=\"425\" class=\"alignnone size-full wp-image-14903\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_05.jpg 713w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_05-300x179.jpg 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_06.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PAD_CallVSTOAddInCode_06.gif\" alt=\"\" width=\"1309\" height=\"665\" class=\"alignnone size-full wp-image-14904\" \/><\/a><\/p>\n<p>\u4eca\u3068\u306a\u3063\u3066\u306fVSTO\u30a2\u30c9\u30a4\u30f3\u306e\u51e6\u7406\u3092PAD\u304b\u3089\u5b9f\u884c\u3059\u308b\u6a5f\u4f1a\u3082\u305d\u3046\u7121\u3044\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u4e00\u5fdc\u5b9f\u884c\u3067\u304d\u308b\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u3082\u640d\u306f\u7121\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Power Platform Community\u306bPower Automate for desktop(PAD)\u306e\u30d5\u30ed\u30fc\u3067Excel\u306eVSTO\u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u3044\u3001\u3068\u306e\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002 Hello, I a [&hellip;]","protected":false},"author":1,"featured_media":13964,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Power Automate for desktop]VSTO\u30a2\u30c9\u30a4\u30f3\u5185\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5]","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":[174],"tags":[],"class_list":["post-14898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pad"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerAutomateDesktop.jpg","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-3Si","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14898","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=14898"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14898\/revisions"}],"predecessor-version":[{"id":14908,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14898\/revisions\/14908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/13964"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}