ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°Ý¦p¦ó§âµL¸ê®Æªº¦h¾l­¶­±³]©w¤@«ö¶s§R°£

¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-10-8 15:17 ½s¿è

¦^´_ 4# simplehope
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Sh As Worksheet, xCol As Integer, Rng As Range, i As Integer
  4.     For Each Sh In ActiveWorkbook.Sheets
  5.          If Sh.PageSetup.PrintArea <> "" Then
  6.             Set Rng = Nothing
  7.             With Sh
  8.                 xCol = .VPageBreaks(1).Location.Column
  9.                 For i = 1 To .HPageBreaks.Count
  10.                     If .HPageBreaks(i).Location.Range("F16") = "" Then Set Rng = .HPageBreaks(i).Location: Exit For
  11.                 Next
  12.                 If Not Rng Is Nothing Then
  13.                     .PageSetup.PrintArea = .Range("a1", .Cells(Rng.Offset(-1).Row, xCol)).Address
  14.                     .Range("a1", .Cells(Rng.Offset(-1).Row, xCol)).Select
  15.                     .Range(Rng, .Range("A" & .Cells.SpecialCells(xlCellTypeLastCell).Row)).Resize(, xCol).Delete xlUp
  16.                     'AJÄæ­ì¥»¤½¦¡=IF(AT14="","",$AT$74) , §ï¤½¦¡ =Á`­¶¼Æ
  17.                 End If
  18.             End With
  19.             Sh.Names.Add Name:="Á`­¶¼Æ", RefersToR1C1:=Sh.HPageBreaks.Count + 1
  20.         End If
  21.     Next
  22. End Sub
½Æ»s¥N½X
PS:2016/10/08 ­×¥¿
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 3# simplehope

¼õ¨ì¥b©]¤TÂI¡AÁ`ºâ¸Õ¥X¨Ó¤F¡A·s¼W­¶­±«á¡AÁÙ¬O·|¦³­¶¼Æ¶Ã±¼ªº°ÝÃD¡C
ºCºC¬ã¨s¡A¤]ÁÂÁ¦³¶i¨Ó¬Ýªº¤j®a¡C

TOP

©êºp¤j®a¡A³Q§Úé¨ì¡A¥Î³Ì²Âªº¤èªk¸Õ¥X¤F!
¦A¥[°Ý¡A¦pªG°õ¦æ«á¦³¨â­¶¡A·Q¥t¦s¦¨pdf¡A¦p¦óÂ^¨ú¤u§@ªí¦WºÙ¬°pdf ªº¦WºÙ?
³o¦¸§Ú¯uªº¤£·|¤F....

TOP

¤U¤È¬ðµM·Q¨ì¥H¤U¼gªk¡G
===========
Sub §R°£ªÅ¥Õ­¶­±()

For i = 3128 To 112 Step -52

    If Range("AH" & i) = "" Then
    Range("AH" & i).Offset(-7, 0).Rows("1:52").EntireRow.Select
    Selection.Delete Shift:=xlUp

    End If

Next

End Sub
====================
¦ý°õ¦æ«á¡AÁ`­¶¼Æ·|¶Ã±¼¡A¦p¹Ï¡G

Á`­¶¼Æ61­¶¡A¦ý¹ê»Ú¥u¦³¤G­¶


³s±µ­¶¼Æªº¦Ç¦â°Ï°ì

À³¸Ó¬Ocell AT74­n§ï¤½¦¡¡A¦ý·Q¤£¥X¨Ó¥i¥H¥Î¤°»ò¨ç¼Æ¡C
¥u¦n¦A½Ð¤j«L­ÌÀ°À°¦£~~

TOP

        ÀR«ä¦Û¦b : ­n¥Î¤ß¡A¤£­n¾Þ¤ß¡B·Ð¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD