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

VBA ¦p¦ó¤£¦C¦L¹Ï¤ù

VBA ¦p¦ó¤£¦C¦L¹Ï¤ù

½Ð°Ý¦p¦ó±N¤u§@ªí¤º©Ò¦³¹Ï¤ù¦C¦L®É¤£¦LÅã¥Ü
½Ð«ü±Ð

¥¼©R¦W.jpg (39.44 KB)

¥¼©R¦W.jpg

¥»©«³Ì«á¥Ñ luhpro ©ó 2014-9-3 22:36 ½s¿è
½Ð°Ý¦p¦ó±N¤u§@ªí¤º©Ò¦³¹Ï¤ù¦C¦L®É¤£¦LÅã¥Ü
½Ð«ü±Ð
enoch µoªí©ó 2014-9-3 16:58


¥H¤Uµ{¦¡½X©ñ¦b Module1 :
  1. Public bPrint As Boolean
  2. Option Explicit
½Æ»s¥N½X
¥H¤Uµ{¦¡½X©ñ¦b ThisWorkbook :
  1. Option Explicit

  2. Private Sub Workbook_BeforePrint(Cancel As Boolean)
  3.   Dim vA
  4.   
  5.   If Not bPrint Then
  6.     bPrint = True
  7.     With ActiveSheet
  8.       For Each vA In .Shapes
  9.         vA.Visible = False
  10.       Next
  11.       .PrintPreview
  12.       Cancel = True
  13.       For Each vA In .Shapes
  14.         vA.Visible = True
  15.       Next
  16.     End With
  17.     bPrint = False
  18.   End If
  19. End Sub
½Æ»s¥N½X
¦Ò¼{¨ì¦C¦L«áÀ³¸ÓÁÙ¬O»Ý­n«ì´_¹Ï¤ùªºÅã¥Ü,
©Ò¥H§Ú±q ¹wÄý¦C¦L ¥\¯à¤WµÛ¤â¹ê²{.
§A¥i¦b ¹wÄýµe­± ¤W½T»{µ²ªG«á«ö¤U ¦C¦L «ö¶s¿é¥X¤u§@ªí,
­Y¥¼¿ï¦C¦Lª½±µÃö³¬¸Óµe­±«h¤£·|°õ¦æ¦C¦L§@·~.

TOP

        ÀR«ä¦Û¦b : §g¤l¥ß«í§Ó¡A¤p¤H«í¥ß§Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD