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

[µo°Ý] §PÂ_ ¨â¦C¬O§_§¹¥þ¤@¼Ë

[µo°Ý] §PÂ_ ¨â¦C¬O§_§¹¥þ¤@¼Ë

½Ð±Ð¤j¤j:
   workbook1.Sheets(3).Row(4)
   workbook2.Sheets(3).Row(4)
¥u¬O­n§PÂ_ ¨â¦C¬O§_§¹¥þ¤@¼Ë(§PÂ_¬O§_¦³­×§ï¹L)
»yªk ¦p¦ó?
ÁÂÁ½ç±Ð

¦^´_ 1# yangjie
  1. Sub zz()
  2. Dim a, b, s$
  3. a = Sheets(1).Rows(4)
  4. b = Sheets(3).Rows(4)
  5. For i = 1 To UBound(a, 2)
  6.     If a(1, i) <> b(1, i) Then s = s & Chr(10) & Cells(4, i).Address(0, 0)
  7. Next
  8. If Len(s) Then MsgBox Mid(s, 2)
  9. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# ikboy
½Ð±Ð
UBound(a, 2) ¬O¦p¦ó¸ÑÄÀ?

TOP

¦^´_ 3# yangjie


    ©x¤è»¡©ú¡Ghttps://msdn.microsoft.com/zh-tw/library/95b8f22f(v=vs.90).aspx

TOP

        ÀR«ä¦Û¦b : ¦Y­W¤F­W¡B­WºÉ¤Ü¨Ó¡A¨ÉºÖ¤FºÖ¡BºÖºÉ´d¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD