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

[µo°Ý] ­pºâ¥X¤À­¶(sheets)ªº­Ó¶q

[µo°Ý] ­pºâ¥X¤À­¶(sheets)ªº­Ó¶q

¥»©«³Ì«á¥Ñ Hsieh ©ó 2013-1-16 17:32 ½s¿è

½Ð±Ð¤@¤U
¦³¨S¦³¤°»ò¤èªk¬O¥i¥H§Ö³tªº­pºâ¥X¤À­¶(sheets)ªº­Ó¶q

¥»©«³Ì«á¥Ñ mark15jill ©ó 2013-1-16 09:18 ½s¿è

¦^´_ 1# imzues

¼ÐÃD¤ÀÃþ§Ë¿ù...
­Ó¶q ¬O­n¯S©w¥Ø¼ÐÁÙ¬OÁ`¼Æ


Private Sub CommandButton1_Click()

Dim mysheet As Worksheet
Dim i As Integer

i = 0

For Each mysheet In Worksheets

i = i + 1

Next

MsgBox "¤u§@ªí­Ó¼Æ¦@ " & i & " ­Ó¡C"


End Sub

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 1# imzues
VBA ¤¤¥Î Sheets.Count §Y¥i

TOP

¬O¤À¨É¶K,ÁÙ¬O¨D§U¶K¤l

Sub ZZ5151353()
MsgBox Sheets.Count
End Sub

¦Û©w¸q¤è¦¡

©w¸q¦WºÙ number ¤½¦¡ =GET.WORKBOOK(4)

¥ô·NÀx¦s®æ ¤½¦¡ =number
300 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

©êºp.....¬O¨D§U©«.....
·PÁ¤j®aªº¦^´_,¨ü¯q¨}¦h

TOP

        ÀR«ä¦Û¦b : ¤Ñ¤W³Ì¬ü¬O¬P¬P¡A¤H¥Í³Ì¬ü¬O·Å±¡¡C
ªð¦^¦Cªí ¤W¤@¥DÃD