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

[µo°Ý] ¦Û­qªí³æ~¿ï¾ÜªºOptionButton~¦¨¥ß«á¸õ¸Ó¸ê®Æªí~(§¹¦¨~ÁÂÁ¤j¤jªºÀ°¦£)

[µo°Ý] ¦Û­qªí³æ~¿ï¾ÜªºOptionButton~¦¨¥ß«á¸õ¸Ó¸ê®Æªí~(§¹¦¨~ÁÂÁ¤j¤jªºÀ°¦£)

¥»©«³Ì«á¥Ñ av8d ©ó 2012-5-31 11:02 ½s¿è

¦Û­qªí³æ~
For i = 6 To 21
If Me.Controls("OptionButton" & i).Value = True Then
Sheets("i+2006").Select
Range("A1").Formula = "i+2006"
Exit For
End If
Next
End Sub

i+2006³o¦a¤è·|¥X²{"°}¦C¯Á¤Þ¶W¥X½d³ò"~¤£ª¾¹D¬°¤°»ò!?

¦pªG¥H¤W¬Ý¤£À´~§Ú¥´­Ó¤ñ¤è¦n¤F~
For i=1~5
Sheets("i+1").Select
Next i

µª®×³Ì«á·|¶]¨ì
¸ê®Æªí¦WºÙ6³o­Ó¦ì¸m¡A¥i¬O¥L«o¥X²{i+1¿ù»~

¦^´_ 1# av8d


Sheets("i+2006").Select
Range("A1").Formula = "i+2006"
§ï¬°
Sheets("" & i + 2006 & "").Range("A1").Formula = i + 2006

TOP

¦^´_ 2# register313


    ¤j¤jªºµª®×ÆZ©ú½Tªº~§Ú¤]ı±o¨S°ÝÃD~¥i¬O¨ÌµM¥X²{°}¦C¿ù»~~(µL¸Ñªº¨t²Î)

§Ú«á¨Ó°½°½­×§ï¤F¤@¤U~µo²{¤@¥ó¨Æ±¡~
For i = 6 To 21
    If Me.Controls("OptionButton" & i).Value = True Then
        i = i + 2006
        Sheets("s" & i).Select
    End If
Next

¸ê®Æªí¬O§_¤£¯à¬°¯Â¼Æ¦r~§Ú´ú¸Õ¥H¤W~´N¨S¥X²{°ÝÃD¤F~¦¨¥\°õ¦æ~¤]¦Û°Ê¶]¨ì¸Ó¸ê®Æªí

TOP

¦^´_ 3# av8d

¤u§@ªí¦WºÙ¥i¬°¼Æ¦r
1.gif

TOP

        ÀR«ä¦Û¦b : ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD