{"id":4906,"date":"2014-09-18T11:14:45","date_gmt":"2014-09-18T02:14:45","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4906"},"modified":"2014-09-18T11:14:45","modified_gmt":"2014-09-18T02:14:45","slug":"excel-vbaprintpreview%e5%be%8c%e3%81%ab%e5%8d%b0%e5%88%b7%e3%81%99%e3%82%8b%e3%81%a8ctrl%ef%bc%8b%e3%81%ae%e6%97%a5%e4%bb%98%e5%bd%a2%e5%bc%8f%e3%81%8c%e5%a4%89%e3%82%8f%e3%82%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4906","title":{"rendered":"[Excel VBA]PrintPreview\u5f8c\u306b\u5370\u5237\u3059\u308b\u3068Ctrl\uff0b;\u306e\u65e5\u4ed8\u5f62\u5f0f\u304c\u5909\u308f\u308b\uff1f"},"content":{"rendered":"<p>MSDN\u30d5\u30a9\u30fc\u30e9\u30e0\u3067\u9762\u767d\u3044\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u30fbExcel VBA \u3067\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3057\u3001\u5370\u5237\u3059\u308b\u3068\u3001\u65e5\u4ed8\u5165\u529b\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3067\u8868\u793a\u3055\u308c\u308b\u65e5\u4ed8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3002<\/strong><br \/>\n<a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/ja-JP\/vbajp\/thread\/74240763-9b9c-4fcc-838b-45e5f6916f4f\" title=\"Excel VBA \u3067\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3057\u3001\u5370\u5237\u3059\u308b\u3068\u3001\u65e5\u4ed8\u5165\u529b\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3067\u8868\u793a\u3055\u308c\u308b\u65e5\u4ed8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3002\" target=\"_blank\">http:\/\/social.msdn.microsoft.com\/Forums\/ja-JP\/vbajp\/thread\/74240763-9b9c-4fcc-838b-45e5f6916f4f<\/a><\/p>\n<p>1. Excel\u3067\u9078\u629e\u4e2d\u306e\u30bb\u30eb\u306b\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u300c<a href=\"http:\/\/office.microsoft.com\/ja-jp\/HP010070472.aspx\" title=\"\u30bb\u30eb\u306b\u73fe\u5728\u306e\u65e5\u4ed8\u3068\u6642\u523b\u3092\u5165\u529b\u3059\u308b\" target=\"_blank\">Ctrl \u30ad\u30fc \uff0b ; (\u30bb\u30df\u30b3\u30ed\u30f3)<\/a>\u300d\u3001\u666e\u901a\u306a\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">yyyy\/m\/d<\/span>\u300d\u5f62\u5f0f\u3067\u65e5\u4ed8\u304c\u5165\u529b\u3055\u308c\u308b\u3068\u3053\u308d\u3001<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_01.jpg\" alt=\"ExcelVBA_PrintPreview_01\" width=\"488\" height=\"143\" class=\"alignnone size-full wp-image-4907\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_01.jpg 488w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_01-300x87.jpg 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p>2. \u300c<span style=\"color: #ff0000; font-weight: bold;\">ActiveSheet.PrintPreview<\/span>\u300d\u3067\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3057\u3001<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_02.jpg\" alt=\"ExcelVBA_PrintPreview_02\" width=\"244\" height=\"113\" class=\"alignnone size-full wp-image-4908\" \/><\/a><\/p>\n<p>3. \u300c<span style=\"color: #ff0000; font-weight: bold;\">\u5370\u5237<\/span>\u300d\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u3001<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_03.jpg\" alt=\"ExcelVBA_PrintPreview_03\" width=\"516\" height=\"262\" class=\"alignnone size-full wp-image-4909\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_03.jpg 516w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_03-300x152.jpg 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/a><\/p>\n<p>4. \u300c<span style=\"color: #ff0000; font-weight: bold;\">Ctrl \u30ad\u30fc \uff0b ; (\u30bb\u30df\u30b3\u30ed\u30f3)<\/span>\u300d\u3067\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u65e5\u4ed8\u304c\u300c<span style=\"color: #ff0000; font-weight: bold;\">m\/d\/yyyy<\/span>\u300d\u5f62\u5f0f\u306b\u306a\u308b\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_04.jpg\" alt=\"ExcelVBA_PrintPreview_04\" width=\"488\" height=\"160\" class=\"alignnone size-full wp-image-4910\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_04.jpg 488w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelVBA_PrintPreview_04-300x98.jpg 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p>\u3068\u3044\u3046\u8cea\u554f\u3067\u3059\u3002<br \/>\nWindows 7(x86) + Excel 2013(x86)\u74b0\u5883\u3067\u8a66\u3057\u3066\u307f\u308b\u3068\u3001\u305f\u3057\u304b\u306b\u8cea\u554f\u8005\u3055\u3093\u304c\u4ef0\u3063\u3066\u3044\u308b\u901a\u308a\u306e\u73fe\u8c61\u304c\u8d77\u3053\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u30bf\u30d6\u306e\u5370\u5237\u304b\u3089\u306f\u540c\u3058\u73fe\u8c61\u306f\u8d77\u304d\u305a\u3001\u500b\u4eba\u7684\u306b\u306fExcel\u306e\u4ed5\u69d8\u3068\u3044\u3046\u304b\u30d0\u30b0\u306e\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">PrintPreview<\/span>\u300d\u3067\u306f\u306a\u304f\u300c<span style=\"color: #ff0000; font-weight: bold;\">Application.CommandBars.ExecuteMso &#8220;FilePrintPreview&#8221;<\/span>\u300d\u3092\u4f7f\u3046\u3068\u3001\u540c\u3058\u73fe\u8c61\u304c\u767a\u751f\u3057\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">Ctrl \u30ad\u30fc \uff0b ; (\u30bb\u30df\u30b3\u30ed\u30f3)<\/span>\u300d\u3067\u306e\u65e5\u4ed8\u5165\u529b\u3092\u591a\u7528\u3057\u3001\u304b\u3064\u65e7\u6765\u306e\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u4f7f\u3044\u305f\u3044\u65b9\u306fExecuteMso\u30e1\u30bd\u30c3\u30c9\u306e\u65b9\u3092\u4f7f\u3063\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub Test1()\r\n  Application.CommandBars.ExecuteMso &quot;FilePrintPreview&quot; '\u554f\u984c\u304c\u767a\u751f\u3057\u306a\u3044\r\nEnd Sub\r\n\r\nPublic Sub Test2()\r\n  ActiveSheet.PrintPreview '\u554f\u984c\u304c\u767a\u751f\u3059\u308b\r\nEnd Sub<\/pre>\n","protected":false},"excerpt":{"rendered":"MSDN\u30d5\u30a9\u30fc\u30e9\u30e0\u3067\u9762\u767d\u3044\u8cea\u554f\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u30fbExcel VBA \u3067\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3057\u3001\u5370\u5237\u3059\u308b\u3068\u3001\u65e5\u4ed8\u5165\u529b\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3067\u8868\u793a\u3055\u308c\u308b\u65e5\u4ed8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3002 http:\/\/social.msdn [&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":"PrintPreview\u2192\u5370\u5237\u306e\u4ed5\u69d8\uff1f\u305d\u308c\u3068\u3082\u30d0\u30b0\uff1f\uff1f [[Excel VBA]PrintPreview\u5f8c\u306b\u5370\u5237\u3059\u308b\u3068Ctrl\uff0b;\u306e\u65e5\u4ed8\u5f62\u5f0f\u304c\u5909\u308f\u308b\uff1f]","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],"tags":[],"class_list":["post-4906","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office"],"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-1h8","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4906","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=4906"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4906\/revisions"}],"predecessor-version":[{"id":4911,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4906\/revisions\/4911"}],"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=4906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}