{"id":17246,"date":"2022-02-17T20:03:00","date_gmt":"2022-02-17T11:03:00","guid":{"rendered":"https:\/\/happy-man.jp\/engineer\/?p=17246"},"modified":"2022-02-18T08:16:17","modified_gmt":"2022-02-17T23:16:17","slug":"%e8%a4%87%e6%95%b0%e3%81%aeexcel%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e5%85%a8%e3%82%b7%e3%83%bc%e3%83%88%e3%82%92%e5%85%a8%e9%83%a8docuworks%e3%81%ab%e3%81%97%e3%81%9f%e3%81%84%e3%81%ae-2","status":"publish","type":"post","link":"https:\/\/happy-man.jp\/engineer\/?p=17246","title":{"rendered":"\u8907\u6570\u306eExcel\u30d5\u30a1\u30a4\u30eb\u306e\u5168\u30b7\u30fc\u30c8\u3092\u5168\u90e8Docuworks\u306b\u3059\u308b\u30de\u30af\u30ed\u306e\u300c\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u307e\u305b\u3093\u300d\u3092\u89e3\u6d88\u3057\u305f\u3064\u3082\u308a\u3002"},"content":{"rendered":"<p>\u6628\u5e74\u3001\u82e6\u3057\u7d1b\u308c\u306b\u4f5c\u3063\u305fExcel\u306e\u30b7\u30fc\u30c8\u5168\u90e8\u5370\u5237\u3057\u3061\u3083\u304a\u3046\u30de\u30af\u30ed\u306a\u3093\u3060\u304c\u3001\u6b20\u70b9\u304c\u3042\u308b\u3002<\/p>\n<p><a href=\"https:\/\/happy-man.jp\/engineer\/?p=16221\">\u8907\u6570\u306eExcel\u30d5\u30a1\u30a4\u30eb\u306e\u5168\u30b7\u30fc\u30c8\u3092\u5168\u90e8Docuworks\u306b\u3057\u305f\u3044\u306e\u3067\u30de\u30af\u30ed\u3092\u30d1\u30af\u3063\u305f | \u5730\u8cea\u5c4b\u3055\u3093\u3068\u547c\u3070\u306a\u3044\u3067<\/a><\/p>\n<p>\u3053\u3044\u3064\u3067\u304b\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u591a\u91cf\u306b\u6271\u3046\u3068\u3001\u300c\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u307e\u305b\u3093\u300d\u304c\u3067\u3066\u767d\u3044\u30b7\u30fc\u30c8\u3092\u5410\u304d\u51fa\u3057\u307e\u307e\u304a\u4ea1\u304f\u306a\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u307e\u307e\u4eca\u5e74\u3082\u4f7f\u3044\u7d9a\u3051\u308b\u306e\u306f\u99ac\u9e7f\u306a\u306e\u3067\u5c11\u3057\u6539\u826f\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u5143\u306e\u30de\u30af\u30ed\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>\/*Sub \u4e00\u62ec\u5370\u5237()\r\n\r\n'\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u5370\u5237\u5bfe\u8c61\u30d6\u30c3\u30af\u3092\u958b\u304f\uff08\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u53ef\uff09\r\nDim FileName As Variant\r\nFileName = Application.GetOpenFilename _\r\n(\"Microsoft Excel\u30d6\u30c3\u30af,*.xls?\", MultiSelect:=True)\r\n\r\nIf Not IsArray(FileName) Then\r\nExit Sub\r\nEnd If\r\n\r\nDim cnt As Long '\u9078\u629e\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u30ab\u30a6\u30f3\u30c8\r\ncnt = UBound(FileName)\r\n\r\nDim rc As Long '\u5b9f\u884c\u78ba\u8a8d\r\nrc = MsgBox(cnt &amp; \"\u30d5\u30a1\u30a4\u30eb\u304c\u9078\u629e\u3055\u308c\u307e\u3057\u305f\u3002\" &amp; vbCrLf &amp; _\r\n\"\u5370\u5237\u3092\u958b\u59cb\u3057\u307e\u3059\u304b\uff1f\", vbOKCancel + vbInformation)\r\n\r\nIf rc = vbOK Then\r\n\r\nDim n As Long '\u5370\u5237\u5bfe\u8c61\u306e\u30d6\u30c3\u30af\u6570\r\nFor n = LBound(FileName) To UBound(FileName)\r\n\r\nDim wb As Workbook '\u5370\u5237\u5bfe\u8c61\u30d6\u30c3\u30af\r\nSet wb = Workbooks.Open(FileName(n))\r\n\r\nActiveWorkbook.PrintOut Preview:=False '\u5168\u30b7\u30fc\u30c8\u5370\u5237\r\n\r\nwb.Close False '\u4fdd\u5b58\u3057\u306a\u3044\u3067\u9589\u3058\u308b\r\n\r\nNext n\r\n\r\nMsgBox \"\u5370\u5237\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\"\r\n\r\nEnd If\r\n\r\nEnd Sub\r\n*\/\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3060\u3068\u30e1\u30e2\u30ea\u30fc\u3092\u89e3\u653e\u3059\u308b\u524d\u306b\u6b21\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u63b4\u307f\u306b\u8a00\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30d1\u30f3\u30af\u3059\u308b\u3089\u3057\u3044\u306e\u3060\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>\/*Sub \u4e00\u62ec\u5370\u5237()\r\n\r\n'\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u5370\u5237\u5bfe\u8c61\u30d6\u30c3\u30af\u3092\u958b\u304f\uff08\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u53ef\uff09\r\nDim FileName As Variant\r\nFileName = Application.GetOpenFilename _\r\n(\"Microsoft Excel\u30d6\u30c3\u30af,*.xls?\", MultiSelect:=True)\r\n\r\nIf Not IsArray(FileName) Then\r\nExit Sub\r\nEnd If\r\n\r\nDim cnt As Long '\u9078\u629e\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u30ab\u30a6\u30f3\u30c8\r\ncnt = UBound(FileName)\r\n\r\nDim rc As Long '\u5b9f\u884c\u78ba\u8a8d\r\nrc = MsgBox(cnt &amp; \"\u30d5\u30a1\u30a4\u30eb\u304c\u9078\u629e\u3055\u308c\u307e\u3057\u305f\u3002\" &amp; vbCrLf &amp; _\r\n\"\u5370\u5237\u3092\u958b\u59cb\u3057\u307e\u3059\u304b\uff1f\", vbOKCancel + vbInformation)\r\n\r\nIf rc = vbOK Then\r\n\r\nDim n As Long '\u5370\u5237\u5bfe\u8c61\u306e\u30d6\u30c3\u30af\u6570\r\nFor n = LBound(FileName) To UBound(FileName)\r\n\r\nDim wb As Workbook '\u5370\u5237\u5bfe\u8c61\u30d6\u30c3\u30af\r\nSet wb = Workbooks.Open(FileName(n))\r\n\r\nActiveWorkbook.PrintOut Preview:=False '\u5168\u30b7\u30fc\u30c8\u5370\u5237\r\n\r\nwb.Close False '\u4fdd\u5b58\u3057\u306a\u3044\u3067\u9589\u3058\u308b\r\n<span style=\"background-color: #ffffff; color: #000000;\">\r\n'Close\u5f85\u6a5f\u2190\u3053\u3053\u304b\u3089\u8ffd\u52a0\u3057\u305f\r\nDoEvents\r\n<\/span>\r\nNext n\r\n\r\nMsgBox \"\u5370\u5237\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\"\r\n\r\nEnd If\r\n\r\nEnd Sub\r\n*\/<\/code><\/pre>\n<\/div>\n<p>31\uff5e32\u884c\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u5927\u91cf\u306e\u91cd\u305f\u3044Excel\u30d5\u30a1\u30a4\u30eb\u309210\u500b\u3067\u308220\u500b\u3067\u3082\u5168\u90e8Docuworks\u306b\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u3067\u3082\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067Chrome\u4f7f\u3063\u3066\u30cd\u30c3\u30c8\u30b5\u30fc\u30d5\u30a3\u30f3\u3068\u304bTwitter\u3068\u304b\u3057\u306a\u3044\u65b9\u304c\u826f\u3055\u305d\u3046\u306a\u611f\u3058\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u3053\u308c\u3092\u3084\u3063\u305f\u3042\u3068\u306fExcel\u3092\u518d\u8d77\u52d5\u3057\u306a\u3044\u3068\u3001\u307e\u305f\u843d\u3061\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u5c3b\u306b\u3001\u300cDoEvents\u300d\u3055\u305b\u305f\u3089\u3044\u3044\u306e\uff1f\u3088\u304f\u89e3\u3089\u306a\u3044\u3051\u3069\u3001\u307e\u3042\u3053\u306e\u307e\u307e\u3067\u884c\u3053\u3046\u3002<\/p>\n<p>\u8b1d\u8f9e\uff09\u4ee5\u4e0b\u306e\u5148\u8f29\u3092\u53c2\u8003\u306b\u3044\u305f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/qiita.com\/AkiUnleash\/items\/fc8f783a9428211e91b2\">VBA\u3067Excel\u30d5\u30a1\u30a4\u30eb\u958b\u9589\u3092\u7e70\u308a\u8fd4\u3059\u3068\u3001\u5f90\u3005\u306b\u9045\u5ef6\u304c\u767a\u751f\u3059\u308b\u4e0d\u5177\u5408\u3092\u89e3\u6d88\uff08\u30e1\u30e2\u30ea\u89e3\u653e\uff09 &#8211; Qiita<\/a><\/p>\n<p>\uff082022\/02\/18\u8ffd\u8a18\uff09<\/p>\n<p>\u306a\u3093\u304b\u5909\u306a\u6319\u52d5\u3092\u8d77\u3053\u3057\u3066\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u304c\u300115\u500b\u304f\u3089\u3044\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u6a5f\u5acc\u304c\u826f\u3051\u308c\u3070\u52d5\u304f\u306e\u3067OK\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u6628\u5e74\u3088\u308a\u306f\u80fd\u7387\u306f\u305f\u3076\u30933\u500d\u3042\u3063\u3077\u3057\u305f\u305e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5e74\u3001\u82e6\u3057\u7d1b\u308c\u306b\u4f5c\u3063\u305fExcel\u306e\u30b7\u30fc\u30c8\u5168\u90e8\u5370\u5237\u3057\u3061\u3083\u304a\u3046\u30de\u30af\u30ed\u306a\u3093\u3060\u304c\u3001\u6b20\u70b9\u304c\u3042\u308b\u3002 \u8907\u6570\u306eExcel\u30d5\u30a1\u30a4\u30eb\u306e\u5168\u30b7\u30fc\u30c8\u3092\u5168\u90e8Docuworks\u306b\u3057\u305f\u3044\u306e\u3067\u30de\u30af\u30ed\u3092\u30d1\u30af\u3063\u305f | \u5730\u8cea\u5c4b\u3055\u3093\u3068\u547c\u3070\u306a\u3044\u3067 \u3053\u3044\u3064\u3067\u304b\u3044\u30d5\u30a1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"_lightning_design_setting":{"layout":"default"},"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[21],"tags":[],"class_list":["post-17246","post","type-post","status-publish","format-standard","hentry","category-21"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts\/17246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17246"}],"version-history":[{"count":5,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts\/17246\/revisions"}],"predecessor-version":[{"id":17263,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts\/17246\/revisions\/17263"}],"wp:attachment":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}