¦U¦ì½×¾Âªº¥ý¶i¤j®a¦n¡I¤£¦n·N«ä¡C¤p§Ì¤S¨Ó½Ð±Ð¤j®a°ÝÃD¤F¡C³o¦¸ªººc·Q¬O¡y¦Û°Ê¿ï¾Üµû»y¨t²Î¡z¡A·íµM³o¥u¬O´ú¸Õªº©Ê½è¡A³Ì«áÁÙ¬On¥Ñ¨Ï¥ÎªÌ¤]´N¬O±Ð®v¨Ó¿ï¾Ü¯u¥¿¾A¦X¾Ç¥Íªºµû»y¡C³o»yªk·|±N¦Ñ®v©Òµ¹ªº¥®É¤À¼Æ¡A¬D¿ï¥X¹w³]ªºµû»y¡A»yªk¦p¤U¡G
Option Explicit
Sub ¦Û°Êµû»y¨t²Î()
Dim a1, a2, a3, a4, a5 As String
Dim myrange, z, x1
a1 = "«~¾ÇÝÀu"
a2 = "¾Äµo¦V¤W"
a3 = "Áo©ú§D«W"
a4 = "¥D°Ê¨Dª¾"
a5 = "¦U¬ì§¡Àu"
z = 5
For x1 = 1 To z
Set myrange = Sheets("sheet1").Range("c" & x1)
Select Case myrange
Case 90 To 99
Sheets("sheet1").Range("c" & x1) = " a" & (Int(Rnd() * 5 + 1))
End Select
Next x1
End Sub
°ÝÃD¡G§Ú¬O·Q¥Ñ¶Ã¼Æ¥h¬D¿ï¹w³]ªº5Óµû»y¡A¦ý¬Oªí®æ¤º«o¥X²{a2,a1,a5¦Ó¤£¬O¤¤¤åªºµû»y¡A¯u¤£ª¾¬Oþ¸Ì¥X°ÝÃD¡A½Ð±Ð¤@¤U¡H |