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

[µo°Ý] Àx¦s®æ¦³¸óÄæ¸m¤¤¡A½Ð°Ý¦p¦ó²Î­p©Î¬d¬Ý¸ÓÄ椤¦U¦Cªº¸ê®Æ¤º®e¡H

[µo°Ý] Àx¦s®æ¦³¸óÄæ¸m¤¤¡A½Ð°Ý¦p¦ó²Î­p©Î¬d¬Ý¸ÓÄ椤¦U¦Cªº¸ê®Æ¤º®e¡H

¤j®a¦n¡A½Ð°Ý¤@¤U¡A
§Ú¥ÎEXCEL°µ¤F¤@­Ó¦æµ{ªí¡A¨Ó¦w±Æ¨C­Ó¤ëªº¦æµ{¡A
¦ý¦³¨Ç¸ê®Æ¬O·|¸ó¤ë¥÷¡A©Ò¥H¥Î¸óÄæ¸m¤¤(¦pªþ¥ó)

¨Ò¦p¡G§Ú·Q¬d¬Ý§Ú10205¤ëªº¦æµ{(Àx¦s®æ¦Cªº¸ê®Æ)¦³­þ¨Ç®É¡A
µLªk¨Ï¥Î¿z¿ï¡A¦]¬°¿z¿ï¥u¯à¿z¿ï¸óÄæ¸ê®Æ¬O±q10205¶}©lªº¤º®e¡A
­Y±q10204¶}©l¸óÄæ¸m¤¤ªº¸ê®Æ,´N¨S¿ìªk¡A
©Ò¥H·Q½Ð°Ý¬O§_¦³¨ç¼Æ©Î¨ä¥L¾Þ§@¥\¯à¡A
¥i¥HÅý§Ú¥i¥H¬Ý¨ì§Ú10205Á`¦@¦³­þ¨Ç¦æµ{©O?

½Ðª¾¹Dªº¦U¦ì¡AÀ°§Ú¸Ñµª¤@¤U¡AÁÂÁ¡I

book01.JPG (42.46 KB)

book01.JPG

¦^´_ 1# queening
§Ú§ä¤£¨ì¨Ï¥Î¤@¯ë¤è¦¡ªº¸Ñªk,
¤£¹L­Y§ï¨Ï¥Î Excel VBA ­Ë¬O¥i¥H«Ü®e©öªº¹F¨ì§Aªº»Ý¨D :
ChkData-a.zip (10.75 KB)
  1. Private Sub cbCheck_Click()
  2.   Dim icol%, icols%
  3.   Dim sStr$
  4.   Dim lTemp&
  5.   Dim rTar As Range
  6.   Dim vTemp
  7.   
  8.   icol = 0
  9.   Do
  10.     sStr = InputBox("½Ð¿é¤J¤ë¥÷ :", "¬d¸ß¦æµ{", 10210)
  11.     If sStr <> "" Then
  12.       For lTemp = 1 To 12
  13.         If sStr = CStr(Cells(1, lTemp)) Then
  14.           icol = lTemp
  15.           Exit For
  16.         End If
  17.       Next lTemp
  18.     End If
  19.     If icol = 0 Then
  20.       vTemp = MsgBox("§ä¤£¨ì¿é¤Jªº¤ë¥÷¸ê®Æ ©Î ¿é¤Jªº¤ë¥÷À³¬° 10201 ªº§Î¦¡, ¬O§_­«·s¿é¤J?", vbOKCancel + vbDefaultButton1)
  21.       If vTemp = vbCancel Then Exit Sub
  22.     End If
  23.   Loop Until icol > 0
  24.   
  25.   sStr = ""
  26.   lTemp = 2
  27.   vTemp = 0
  28.   Do
  29.     If icol = 1 Or Cells(lTemp, icol).MergeArea.Count = 1 Then
  30.       Set rTar = Cells(lTemp, icol)
  31.     Else
  32.       Set rTar = Cells(lTemp, Cells(lTemp, icol + 1).End(xlToLeft).Column)
  33.     End If
  34.     If rTar <> "" Then
  35.       If sStr = "" Then
  36.         sStr = sStr + rTar
  37.       Else
  38.         sStr = sStr & Chr(10) & Chr(10) & rTar
  39.       End If
  40.     End If
  41.     lTemp = lTemp + 1
  42.     icols = Cells(lTemp, Columns.Count).End(xlToLeft).Column
  43.     If icols = 1 And Cells(lTemp, 1) = "" Then vTemp = vTemp + 1
  44.   Loop Until vTemp > 10
  45.   If sStr = "" Then
  46.     MsgBox (Cells(1, icol) & "¤ë ¨S¦³¬d¨ì¥ô¦ó¦æµ{.")
  47.   Else
  48.     MsgBox ("¬d´M¨ì " & Cells(1, icol) & " ¤ë ªº¦æµ{¦p¤U :" & Chr(10) & Chr(10) & sStr)
  49.   End If
  50. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¡i®É¤é²öªÅ¹L¡j¤@­Ó¤H¦b¥@¶¡°µ¤F¦h¤Ö¨Æ¡A´Nµ¥©ó¹Ø©R¦³¦hªø¡C¦]¦¹¥²¶·»P®É¶¡Ävª§¡A¤Á²ö¨Ï®É¤éªÅ¹L¡C
ªð¦^¦Cªí ¤W¤@¥DÃD