- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦^´_ 1# jackson7015
¬O¤£¬O³oÓ·N«ä?
[B3]¥X²{20, PrintArea ³]©w¬°¦C¦L ²Ä20®M ¤³s³æ?- Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- Dim r1, r2 As Integer, rng As Range
- Set rng = Worksheets("¤ä²¼").[B3]
- If Not Intersect(Target, rng) Is Nothing Then
- r1 = [B3] * 22 + 22: r2 = [B3] * 22 + 43
- ActiveSheet.PageSetup.PrintArea = _
- "$I$" & r1 & ":$W$" & r2 & ",$Y$" & r1 & ":$AM$" & r2 & ",$AO$" & r1 & ":$BC$" & r2 _
- & ",$BE$" & r1 & ":$BS$" & r2 & ",$BU$" & r1 & ":$CI$" & r2
- ActiveSheet.PrintPreview '¹wÄý¦C¦L
- End If
- End Sub
½Æ»s¥N½X |
|