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

Àx¦s®æRUN¥¨¶°°ÝÃD

Àx¦s®æRUN¥¨¶°°ÝÃD

½Ð°Ý ¥i¥HSET ·íA1¬O1 ®É ´N·|¦Û°Ê RUN  ¥¨¶°A,·íA1¬O2 ®É ´N·|¦Û°Ê RUN  ¥¨¶°B¶Ü?
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

¦^´_ 1# basarasy
Sheetª«¥óªº¤º«ØIJ°Ê¨Æ¥ó
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     If Target.Address(0, 0) = A1 And Target = 1 Then
  3.         ¥¨¶°A
  4.      ElseIf Target.Address(0, 0) = A1 And Target = 2 Then
  5.         ¥¨¶°B
  6.     End If
  7. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE

ÁÂÁÂGBKEE ª©¥D.
½Ð°Ý¦³¤°»ò¦nªºexcel®Ñ±Ð³o¨Ç¤ñ¸û²`¤Jªº½X?
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

³o¨Ç¥u¬O¤ñ¸û°ò¦ªº»yªk¡A¼ô½m«á´N¯àÆF¬¡¹B¥Î¡C
²`¤JÂIªº®Ñ¤]«Ü¦h¡A¦ý§Ú¤]¬Ý¤£À´¡I¤£«Øij§A«æµÛ¶R¡C

TOP

¦^´_ 4# oobird
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)


  2.    If Target.Address(0, 0) = U5 And Target = 1 Then

  3.         MYIC1
  4.         
  5.      ElseIf Target.Address(0, 0) = U5 And Target = 2 Then
  6.      
  7.         MYIC2

  8.        ElseIf Target.Address(0, 0) = U6 And Target = 3 Then
  9.       
  10.         MYIC3

  11.          ElseIf Target.Address(0, 0) = U5 And Target = 4 Then
  12.          
  13.         MYIC4

  14.          ElseIf Target.Address(0, 0) = U5 And Target = 5 Then
  15.          
  16.         MYIC5

  17.          ElseIf Target.Address(0, 0) = U5 And Target = 6 Then
  18.          
  19.         MYIC6

  20.          ElseIf Target.Address(0, 0) = U5 And Target = 7 Then
  21.          
  22.         MYIC7

  23.          ElseIf Target.Address(0, 0) = U5 And Target = 8 Then
  24.          
  25.         MYIC8

  26.          ElseIf Target.Address(0, 0) = U5 And Target = 9 Then
  27.          
  28.         MYIC9

  29.          ElseIf Target.Address(0, 0) = U5 And Target = 10 Then
  30.          
  31.         MYIC10
  32.         
  33.     End If
  34.     End Sub
½Æ»s¥N½X
§Ú§ï¦¨³o­Ó,¦ý¤£¯àrun.   u5¬O¤U©Ô²M³æ¦³ 1-10 . ·íu5=4®É·|¦Û°Êrun  MYIC4.

§Ú¶R¤F2¥»vba³£¨S¦³±Ð³o¤@¨Ç½X.
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 5# basarasy
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim  U5 As $    '©w¸qÅܼƬ°¦r¦ê«¬ºA
U5="U5"          'µ¹ÅܼƤ@­Ó¦r¦ê
If Target.Address(0, 0) = U5 And Target = 1 Then
'
'

TOP

¦^´_ 6# GBKEE


    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim  U5 As string   
U5="U5"         
If Target.Address(0, 0) = U5 And Target = 1 Then
'

ÁÙ¬O¤£¯à¥Î><
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 7# basarasy
«ç¤£¯à¥Î ½Ð²î¤WÀÉ®×

TOP

¥»©«³Ì«á¥Ñ oobird ©ó 2010-10-16 20:32 ½s¿è
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     If Target.address = [U5].address Then
  3.         Select Case Target
  4.         Case 1: MYIC1
  5.         Case 2: MYIC2
  6.         Case 3: MYIC3
  7.         Case 4: MYIC4
  8.         End Select
  9.     End If
  10. End Sub
½Æ»s¥N½X

TOP

ÁÂÁÂoobird¤j¤j.
³o­Ó¥i¥H¥Î¨ì.
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ¯à¥I¥X·R¤ß´N¬OºÖ¡A¯à®ø°£·Ð´o´N¬O¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD