{"id":3914,"date":"2015-10-12T07:46:26","date_gmt":"2015-10-11T22:46:26","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3914"},"modified":"2015-10-12T07:46:26","modified_gmt":"2015-10-11T22:46:26","slug":"pagesetupcenter","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/pagesetupcenter\/","title":{"rendered":"\u5370\u5237\u4f4d\u7f6e\u3092\u4e2d\u592e\u306b\u8a2d\u5b9a\uff08CenterHorizontally, CenterVertically\uff09"},"content":{"rendered":"<h2>PageSetup.CenterHorizontally \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>PageSetup.CenterHorizontally \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u3066\u3001\u5370\u5237\u4f4d\u7f6e\u3092\u6c34\u5e73\u65b9\u5411\u306e\u4e2d\u592e\uff08\u4f59\u767d\u3092\u9664\u304f\uff09\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5024\u306e\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3001\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>PageSetup<\/strong>.<strong>CenterHorizontally<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>PageSetup<\/strong>.<strong>CenterHorizontally<\/strong> = <em>boolean<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>boolean&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09<\/strong>\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5370\u5237\u4f4d\u7f6e\u3092\u6c34\u5e73\u65b9\u5411\u306e\u4e2d\u592e\uff08\u4f59\u767d\u3092\u9664\u304f\uff09\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>PageSetup.CenterVertically \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>PageSetup.CenterVertically \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u3066\u3001\u5370\u5237\u4f4d\u7f6e\u3092\u5782\u76f4\u65b9\u5411\u306e\u4e2d\u592e\uff08\u4f59\u767d\u3092\u9664\u304f\uff09\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5024\u306e\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3001\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>PageSetup<\/strong>.<strong>CenterVertically<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>PageSetup<\/strong>.<strong>CenterVertically<\/strong> = <em>boolean<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>boolean&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09<\/strong>\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5370\u5237\u4f4d\u7f6e\u3092\u5782\u76f4\u65b9\u5411\u306e\u4e2d\u592e\uff08\u4f59\u767d\u3092\u9664\u304f\uff09\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>CenterHorizontally \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbCenterVertically \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"CenterHorizontally \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbCenterVertically \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Center()\r\n\r\n    Dim w As Worksheet\r\n    Set w = ActiveSheet\r\n\r\n    '\u7528\u7d19\u306e\u4e2d\u592e\uff08\u4f59\u767d\u9664\u304f\uff09\u306b\u5370\u5237\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\r\n    w.PageSetup.CenterHorizontally = True\r\n    w.PageSetup.CenterVertically = True\r\n    \r\n\r\n    '\u5370\u5237\u30d7\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\r\n    w.PrintPreview\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/pagesetupcenter01.jpg?ssl=1\" rel=\"lightbox[3914]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/pagesetupcenter01.jpg?resize=580%2C354&#038;ssl=1\" alt=\"\u4e2d\u592e\u5370\u5237 \u4f7f\u7528\u4f8b\" width=\"580\" height=\"354\" class=\"alignnone size-large wp-image-3915\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/pagesetupcenter01.jpg?resize=580%2C354&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/pagesetupcenter01.jpg?resize=400%2C244&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/pagesetupcenter01.jpg?w=1133&amp;ssl=1 1133w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>PageSetup.CenterHorizontally \u30d7\u30ed\u30d1\u30c6\u30a3 PageS &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3984,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[586,587,567,63,311,38,360,566],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/pagesetupcenter01-580x3541.jpg?fit=580%2C354&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-118","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3914"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=3914"}],"version-history":[{"count":3,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3914\/revisions"}],"predecessor-version":[{"id":3983,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3914\/revisions\/3983"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3984"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}