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

ÁôÂäu§@ªí

ÁôÂäu§@ªí

¦U¦ì¦n¡G

Sheets(aab).Visible = False
Sheets(aac).Visible = False
¤p§Ì·QÁôÂäu§@ªí¡A¦ý¦]»Ý­nÁôÂ꺤u§@ªí¤Ó¦h¡A¤p§Ì¹Á¸Õ¼g¦¨Sheets(aac,aac).Visible = False¡A¦ý¥X²{¿ù»~°T®§¡A½Ð¦U¦ì«ü±Ð¡I

Sheets(Array("aab", "aac")).Visible = False
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

Sheets(Array("aab", "aac")).Visible = False
Hsieh µoªí©ó 2010-5-13 23:27



­ì¨Ó¦p¦¹¡AÁÂÁ«ü±Ð¡I

TOP

¦^´_ 2# Hsieh

­Éª©­±

½Ð°ÝHsiehª©¥D
­Y¬O¨ú®øÁôÂæh¤u§@ªí¡A¸Ó¦p¦ó½s¼g?

TOP

¦^´_ 4# jackson7015
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim AR(), E As Variant
  4.     AR = Array("aaB", "aac")
  5.     Sheets(AR).Visible = 0
  6.    
  7.     For Each E In AR
  8.         Sheets(E).Visible = 1  '¨ú®øÁôÂæh¤u§@ªí
  9.     Next
  10. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 5# GBKEE
·PÁÂGBKEEª©¥D¦^À³

·Q½Ð±Ð¡A¥H¤U¤½¦¡¬°¦óSheets(AR).Visible = 0·|¿ù»~
  1. Option Explicit
  2. Sub Åã¥ÜÁôÂäë³øªí¦U¶µ¥Ø()
  3. '
  4. ' ÁôÂäë³øªí¦U¶µ¥Ø ¥¨¶°
  5. If MsgBox("Åã¥ÜÁôÂäë³øªí¦U¶µ¥Ø¡H", vbYesNo) = vbYes Then
  6.     Dim AR(), E As Variant
  7.     AR = Array("¶µ¥Ø1", "¶µ¥Ø2", "¶µ¥Ø3", "¶µ¥Ø4", "¶µ¥Ø5", "¶µ¥Ø6", "¶µ¥Ø7", "¶µ¥Ø8", "¶µ¥Ø9", "¶µ¥Ø10", "¶µ¥Ø11")
  8.     Sheets(AR).Visible = 0
  9.    
  10.     For Each E In AR
  11.         Sheets(E).Visible = 1  '¨ú®øÁôÂæh¤u§@ªí
  12.     Next
  13.         End If
  14. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2014-9-23 14:31 ½s¿è

¦^´_ 6# jackson7015

¥i¯àAR¤w¸g¬O¥þ³¡¤u§@ªíªº¦WºÙ°}¦C¡A­YÁôÂÃ¥þ³¡¤u§@ªí«h·|¥X¿ù
¸ÕµÛ¿ý»s¥¨¶°´N¯à±o¨ìµ{¦¡½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 7# Hsieh

·PÁÂHsiehª©¥Dªº¦^À³

§ä¤£¥X¿ù»~­ì¦]¡A¥u¦nª½±µ¨Ï¥Î¿ý»sªº­×§ï
  1. Sub Åã¥ÜÁôÂäë³øªí¦U¶µ¥Ø()
  2. ' Åã¥ÜÁôÂäë³øªí¦U¶µ¥Ø ¥¨¶°
  3. If MsgBox("Åã¥Ü¤ë³øªí¦U¶µ¥Ø¡H", vbYesNo) = vbYes Then
  4.     Sheets("¶µ¥Ø1").Visible = True
  5.     Sheets("¶µ¥Ø2").Visible = True
  6.     Sheets("¶µ¥Ø3").Visible = True
  7.     Sheets("¶µ¥Ø4").Visible = True
  8.     Sheets("¶µ¥Ø5").Visible = True
  9.     Sheets("¶µ¥Ø6").Visible = True
  10.     Sheets("¶µ¥Ø7").Visible = True
  11.     Sheets("¶µ¥Ø8").Visible = True
  12.     Sheets("¶µ¥Ø9").Visible = True
  13.     Sheets("¶µ¥Ø10").Visible = True
  14.     Sheets("¶µ¥Ø11").Visible = True
  15. End If
  16. If MsgBox("ÁôÂäë³øªí¦U¶µ¥Ø¡H", vbYesNo) = vbYes Then
  17.     Sheets(Array("¶µ¥Ø1", "¶µ¥Ø2", "¶µ¥Ø3", "¶µ¥Ø4", "¶µ¥Ø5", "¶µ¥Ø6", "¶µ¥Ø7", "¶µ¥Ø8", "¶µ¥Ø9", "¶µ¥Ø10", _
  18.         "¶µ¥Ø11")).Select
  19.     Sheets("¶µ¥Ø1").Activate
  20.     ActiveWindow.SelectedSheets.Visible = False
  21. End If
  22. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¡i»X½ªªº¦Û¥Ñ¡j¤H±`¦b¤°»ò³£¥i¥H¦Û¥Ñ¦Û¦bªº®É­Ô¡A«o³Q³oºØÀH¤ß©Ò±ýªº¦Û¥Ñ»X½ª¡AµêÂY®É¥ú¦Ó²@µLıª¾¡C
ªð¦^¦Cªí ¤W¤@¥DÃD