{"id":57,"date":"2021-02-08T07:23:43","date_gmt":"2021-02-07T22:23:43","guid":{"rendered":"http:\/\/192.168.0.97\/bibouroku\/2021\/02\/08\/post-17\/"},"modified":"2021-02-08T07:23:43","modified_gmt":"2021-02-07T22:23:43","slug":"post-17","status":"publish","type":"post","link":"https:\/\/www.donijan.com\/bibouroku\/2021\/02\/post-17.html","title":{"rendered":"\u7d0d\u54c1\u30c7\u30fc\u30bf\u304b\u3089\u7269\u54c1\u53d7\u9818\u66f8\u30fb\u8acb\u6c42\u66f8\u30fb\u9818\u53ce\u66f8\u3092\u4e00\u62ec\u3067"},"content":{"rendered":"<p>\u7d0d\u54c1\u30c7\u30fc\u30bf\u3068\u7269\u54c1\u53d7\u9818\u66f8\u30fb\u8acb\u6c42\u66f8\u30fb\u9818\u53ce\u66f8\u3092\u30d0\u30e9\u30d0\u30e9\u500b\u5225\u306b\u7121\u99c4\u306b\u4f5c\u3063\u3066\u3044\u306a\u3044\u304b?<\/p>\n<p> \u78ba\u5b9a\u3057\u305f\u7d0d\u54c1\u30c7\u30fc\u30bf\u3067\u3042\u308c\u3070\u30fb\u30fb<\/p>\n<p> \u5358\u7d14\u306b\u7d0d\u54c1\u4f1d\u7968=\u7269\u54c1\u53d7\u9818\u66f8=\u8acb\u6c42\u66f8=\u9818\u53ce\u8a3c\u3068\u306a\u308b\u30fb\u30fb\u30fb<\/p>\n<p>\u3042\u3068\u306f\u305d\u306e\u307e\u307e<\/p>\n<p> \u540c\u4e00\u5185\u5bb9\u3092\u8868\u66f8\u304d\u3092\u5909\u3048\u3066\u5370\u5237\u3059\u308b\u3060\u3051\u3068\u306a\u308b\u306e\u3067\u30fb\u30fb<br \/> \u4e00\u6c17\u306b\u4f5c\u3063\u3066\u5370\u5237\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4e00\u6c17\u306b\u4f5c\u3063\u3066\u5370\u5237\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p> \uff11\uff0e\u5b9f\u969b\u306e\u7d0d\u54c1\u30c7\u30fc\u30bf\u304c\u78ba\u5b9a\u3057\u3066\u3001\u58f2\u308a\u4e0a\u3052\u30c7\u30fc\u30bf\u3092CSV\u30d5\u30a1\u30a4\u30eb\u306b\u30b9\u30c8\u30c3\u30af\u3057\u305f\u5f8c<br \/> \u3000\u3000\u6b21\u306f\u7d0d\u54c1\u30c7\u30fc\u30bf\u306e\u5370\u5237\u3068\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u3068\u304d\u306b\u4e00\u62ec\u3067\u3001\u7269\u54c1\u53d7\u9818\u66f8=\u8acb\u6c42\u66f8=\u9818\u53ce\u8a3c\u3082<br \/> \u3000\u3000\u5370\u5237\u3057\u3066\u3057\u307e\u3046\u3002\u4ee5\u4e0b\uff15\uff10\u884c\u306e\u4f1d\u7968\u3092\u4f5c\u308a\u3001\u30d7\u30ea\u30f3\u30c8\u30a2\u30a6\u30c8\u306e\u30dc\u30bf\u30f3\u3092\u4f5c\u6210\u3002<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-1.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-1.jpg\" width=\"600\" height=\"320\" \/><\/a><\/p>\n<p>\uff12\uff0e\u305d\u306e\u30b3\u30de\u30f3\u30c9\u30dc\u30bf\u30f3\u306b\u547c\u3073\u51fa\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u540d\u79f0\u3092\u8a18\u8f09\u3002<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-2.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-2.jpg\" width=\"600\" height=\"210\" \/><\/a><\/p>\n<p>\uff13\uff0e\u4eca\u5ea6\u306f\u305d\u306e\u547c\u3073\u51fa\u3057\u5148\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3002<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-3.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-3.jpg\" width=\"600\" height=\"385\" \/><\/a><\/p>\n<p>\u66f8\u304f\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>&#8216;\u4f1d\u7968\u5370\u5237<\/p>\n<p> Sub DepyPrint()<\/p>\n<p> &#8216;\u5909\u6570\u306e\u8a2d\u5b9a<br \/> Dim LastRow, LastRow0, LastCol0, RowCnt, RowSs As Long<\/p>\n<p> &#8216;\u5909\u6570\u3078\u306e\u5024\u306e\u4ee3\u5165<br \/> LastRow0 = Cells(Rows.Count, 9).End(xlUp).Row + 1<br \/> RowCnt = LastRow0 &#8211; 1<br \/> RowSs = 2\u3000\u3000\u3000&#8217;\u884c\u306e\u8aa4\u5dee\u304c\u51fa\u308b\u306e\u3067\u305d\u306e\u4fee\u6b63\u6570<br \/> LastCol0 = Cells(6, Columns.Count).End(xlToLeft).Column<\/p>\n<p> &#8216;\u7d0d\u54c1\u66f8\u90e8\u5206\u3092\u30b3\u30d4\u30fc<br \/> Range(Cells(1, 1), Cells(LastRow0, LastCol0)).Select<br \/> Selection.Copy<\/p>\n<p> For i = 1 To 3\u3000&#8217;\u7e70\u308a\u8fd4\u3057<\/p>\n<p> &#8216;\u6307\u5b9a\u90e8\u5206\u306b\u8cbc\u308a\u4ed8\u3051<br \/> Cells(RowCnt * i + RowSs, 1).Select<br \/> ActiveSheet.Paste<\/p>\n<p> RowSs = RowSs + 1<\/p>\n<p> Next i<\/p>\n<p> &#8216;\u7d0d\u54c1\u66f8\u3092\u5143\u306b\u3001\u7269\u54c1\u53d7\u9818\u66f8\u3068\u8acb\u6c42\u66f8\u3068\u9818\u53ce\u66f8\u306b\u5909\u3048\u308b<br \/> LastRow = Cells(Rows.Count, 9).End(xlUp).Row<\/p>\n<p> RowCnt = 1<br \/> For i = 1 To LastRow<br \/> Select Case Cells(i, 4)<br \/> Case &#8220;\u7d0d\u54c1\u66f8&#8221;<br \/> Select Case RowCnt<\/p>\n<p> Case 1: RowCnt = RowCnt + 1<\/p>\n<p> Case 2: Cells(i, 4) = &#8220;\u7269\u54c1\u53d7\u9818\u66f8&#8221;<br \/> Rows(i &#8211; 1 &amp; &#8220;:&#8221; &amp; i &#8211; 1).RowHeight = 5.25<br \/> Cells(i + 1, 8) = &#8220;\u53d7\u9818\u5370&#8221;<br \/> Rows(i + 2 &amp; &#8220;:&#8221; &amp; i + 3).RowHeight = 12<br \/> With Range(Cells(i + 1, 8), Cells(i + 2, 8))<br \/> .Merge<br \/> .VerticalAlignment = xlTop<br \/> .HorizontalAlignment = xlCenter<br \/> .Font.Size = 7<br \/> .Borders(xlEdgeLeft).Weight = xlMedium<br \/> .Borders(xlEdgeTop).Weight = xlMedium<br \/> .Borders(xlEdgeBottom).Weight = xlMedium<br \/> .Borders(xlEdgeRight).Weight = xlMedium<\/p>\n<p> End With<\/p>\n<p> With Range(Cells(i &#8211; 2, 2), Cells(i &#8211; 2, 11))<br \/> .Borders(xlEdgeBottom).LineStyle = xlContinuous<br \/> .Borders(xlEdgeBottom).Weight = xlThin<br \/> End With<br \/> RowCnt = RowCnt + 1<\/p>\n<p> Case 3: Cells(i, 4) = &#8220;\u8acb\u6c42\u66f8&#8221;<br \/> Rows(i &#8211; 1 &amp; &#8220;:&#8221; &amp; i &#8211; 1).RowHeight = 5.25<br \/> Rows(i + 2 &amp; &#8220;:&#8221; &amp; i + 3).RowHeight = 12<br \/> With Range(Cells(i &#8211; 2, 2), Cells(i &#8211; 2, 11))<br \/> .Borders(xlEdgeBottom).LineStyle = xlContinuous<br \/> .Borders(xlEdgeBottom).Weight = xlThin<br \/> End With<br \/> RowCnt = RowCnt + 1<\/p>\n<p> Case 4: Cells(i, 4) = &#8220;\u9818\u53ce\u66f8&#8221;<br \/> Rows(i &#8211; 1 &amp; &#8220;:&#8221; &amp; i &#8211; 1).RowHeight = 5.25<br \/> Rows(i + 2 &amp; &#8220;:&#8221; &amp; i + 3).RowHeight = 12<br \/> Cells(i + 2, 5) = &#8220;\u9818\u53ce\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002&#8221;<br \/> Cells(i + 2, 5).Font.Size = 10<br \/> With Range(Cells(i &#8211; 2, 2), Cells(i &#8211; 2, 11))<br \/> .Borders(xlEdgeBottom).LineStyle = xlContinuous<br \/> .Borders(xlEdgeBottom).Weight = xlThin<br \/> End With<br \/> End Select<br \/> End Select<br \/> Next i<\/p>\n<p> &#8216;\u30d7\u30ea\u30f3\u30c8\u8a2d\u5b9a(\u3053\u3053\u306f\u30d7\u30ea\u30f3\u30bf\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308b)<\/p>\n<p> Range(&#8220;A1:K&#8221; &amp; LastRow + 1).Select<br \/> Application.CutCopyMode = False<br \/> ActiveSheet.PageSetup.PrintArea = &#8220;$A$1:$K$&#8221; &amp; LastRow + 1<br \/> Application.PrintCommunication = False<br \/> With ActiveSheet.PageSetup<br \/> .PrintTitleRows = &#8220;&#8221;<br \/> .PrintTitleColumns = &#8220;&#8221;<br \/> End With<br \/> Application.PrintCommunication = True<br \/> ActiveSheet.PageSetup.PrintArea = &#8220;$A$1:$K$&#8221; &amp; LastRow + 1<br \/> Application.PrintCommunication = False<br \/> With ActiveSheet.PageSetup<br \/> .LeftHeader = &#8220;&#8221;<br \/> .CenterHeader = &#8220;&#8221;<br \/> .RightHeader = &#8220;&#8221;<br \/> .LeftFooter = &#8220;&#8221;<br \/> .CenterFooter = &#8220;&#8221;<br \/> .RightFooter = &#8220;&#8221;<br \/> .LeftMargin = Application.InchesToPoints(0.25)<br \/> .RightMargin = Application.InchesToPoints(0.25)<br \/> .TopMargin = Application.InchesToPoints(0.75)<br \/> .BottomMargin = Application.InchesToPoints(0.75)<br \/> .HeaderMargin = Application.InchesToPoints(0.3)<br \/> .FooterMargin = Application.InchesToPoints(0.3)<br \/> .PrintHeadings = False<br \/> .PrintGridlines = False<br \/> .PrintComments = xlPrintNoComments<br \/> .PrintQuality = -3<br \/> .CenterHorizontally = False<br \/> .CenterVertically = False<br \/> .Orientation = xlPortrait<br \/> .Draft = False<br \/> .PaperSize = xlPaperA4<br \/> .FirstPageNumber = xlAutomatic<br \/> .Order = xlDownThenOver<br \/> .BlackAndWhite = False<br \/> .Zoom = False<br \/> .FitToPagesWide = 1<br \/> .FitToPagesTall = False<br \/> .PrintErrors = xlPrintErrorsDisplayed<br \/> .OddAndEvenPagesHeaderFooter = False<br \/> .DifferentFirstPageHeaderFooter = False<br \/> .ScaleWithDocHeaderFooter = True<br \/> .AlignMarginsHeaderFooter = True<br \/> .EvenPage.LeftHeader.Text = &#8220;&#8221;<br \/> .EvenPage.CenterHeader.Text = &#8220;&#8221;<br \/> .EvenPage.RightHeader.Text = &#8220;&#8221;<br \/> .EvenPage.LeftFooter.Text = &#8220;&#8221;<br \/> .EvenPage.CenterFooter.Text = &#8220;&#8221;<br \/> .EvenPage.RightFooter.Text = &#8220;&#8221;<br \/> .FirstPage.LeftHeader.Text = &#8220;&#8221;<br \/> .FirstPage.CenterHeader.Text = &#8220;&#8221;<br \/> .FirstPage.RightHeader.Text = &#8220;&#8221;<br \/> .FirstPage.LeftFooter.Text = &#8220;&#8221;<br \/> .FirstPage.CenterFooter.Text = &#8220;&#8221;<br \/> .FirstPage.RightFooter.Text = &#8220;&#8221;<br \/> End With<br \/> &#8216;\u2193\u3053\u3053\u3082\u30d7\u30ea\u30f3\u30bf\u30fc\u306e\u6a5f\u7a2e\u306b\u3088\u308a\u7570\u306a\u308b<br \/> Application.PrintCommunication = True<\/p>\n<p> End Sub<\/p>\n<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\uff14\uff0e\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-4.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-4.jpg\" width=\"600\" height=\"320\" \/><\/a><\/p>\n<p>\uff15\uff0e\u7d0d\u54c1\u66f8\u306e\u6b21\u306f\u7269\u54c1\u53d7\u9818\u66f8\u3001\u53d7\u9818\u5370\u306e\u5834\u6240\u3092\u4f5c\u308b\u3002<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-5.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-5.jpg\" width=\"600\" height=\"320\" \/><\/a><\/p>\n<p>\uff16\uff0e\u6b21\u306f\u8acb\u6c42\u66f8<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-6.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-6.jpg\" width=\"600\" height=\"320\" \/><\/a><\/p>\n<p>\uff17\uff0e\u6700\u5f8c\u306f\u9818\u53ce\u8a3c\u3000\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u30fb\u30fb\u5165\u308c\u3066\u30fb\u30fb<\/p>\n<p> <a href=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-7.jpg\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/www.donijan.com\/motohiro\/Bibouroku\/2021\/Excel\/Img\/20210208ExcelCsv-7.jpg\" width=\"600\" height=\"320\" \/><\/a><\/p>\n<p>\uff18\uff0e\u3042\u3068\u306f\u5370\u5237\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u30fb\u30fb\u30fb<br \/> \u3000\u3000\u30a8\u30af\u30bb\u30eb\u306f\u3053\u306e\u30d7\u30ea\u30f3\u30bf\u30fc\u306e\u8a2d\u5b9a\u304c\u3001\u6a5f\u7a2e\u306b\u3088\u3063\u3066\u3055\u307e\u3056\u307e\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067<br \/> \u3000\u3000\u81ea\u5206\u306e\u74b0\u5883\u306b\u3042\u308f\u305b\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/> \u3000\u3000\uff16\u884c\u3060\u3051\u306e\u56fa\u5b9a\u884c\u3067\u306a\u3044\u306e\u3067\u3001\u3053\u3053\u306f\u5185\u5bb9\u306b\u5408\u308f\u305b\u3066\u30fb\u30fb\u30fb\u5370\u5237\u30bf\u30a4\u30c8\u30eb\u3084\u30da\u30fc\u30b8\u6570\u306a\u3069\u306e<br \/> \u3000\u3000\u8a2d\u5b9a\u3092\u30de\u30af\u30ed\u3067\u304b\u3044\u3066\u304a\u3051\u3070\u3001\u697d\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<br \/> \u3000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d0d\u54c1\u30c7\u30fc\u30bf\u3068\u7269\u54c1\u53d7\u9818\u66f8\u30fb\u8acb\u6c42\u66f8\u30fb\u9818\u53ce\u66f8\u3092\u30d0\u30e9\u30d0\u30e9\u500b\u5225\u306b\u7121\u99c4\u306b\u4f5c\u3063\u3066\u3044\u306a\u3044\u304b? \u78ba\u5b9a\u3057\u305f\u7d0d\u54c1\u30c7\u30fc\u30bf\u3067\u3042\u308c\u3070\u30fb\u30fb \u5358\u7d14\u306b\u7d0d\u54c1\u4f1d\u7968=\u7269\u54c1\u53d7\u9818\u66f8=\u8acb\u6c42\u66f8=\u9818\u53ce\u8a3c\u3068\u306a\u308b\u30fb\u30fb\u30fb \u3042\u3068\u306f\u305d\u306e\u307e\u307e \u540c\u4e00\u5185\u5bb9\u3092\u8868\u66f8\u304d\u3092\u5909\u3048\u3066\u5370\u5237\u3059\u308b\u3060\u3051\u3068 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-excel","category-vba"],"_links":{"self":[{"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/posts\/57"}],"collection":[{"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donijan.com\/bibouroku\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}