标题:麻烦大神,帮我解释下这段编程所有内容的意思,谢谢
取消只看楼主
依恋0305
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2017-10-27
结帖率:0
已结贴  问题点数:20 回复次数:0 
麻烦大神,帮我解释下这段编程所有内容的意思,谢谢
Sub 成员梳理()
 ajs = Sheet3.UsedRange
 ald = Sheet6.UsedRange
 abb = Sheet7.UsedRange
   
    xmmc = 0: xmlx = 0: qld = 0
    m = 0: t = 0
   
    Dim acc(500, 3) As String
    Dim ccc(500, 5) As String
   
    '以下是成员相关列拿出来
    For k = 1 To UBound(ald)
      For t = 1 To UBound(ajs)
        If InStr(ajs(t, 21), ald(k, 1)) Then
          ccc(m, 0) = ald(k, 1)
          ccc(m, 1) = ajs(t, 5)
          ccc(m, 2) = ajs(t, 3)
          ccc(m, 3) = ajs(t, 4)
          ccc(m, 4) = ajs(t, 21)
          m = m + 1
        End If
      Next
    Next
  
     For m = m To 500
     ccc(m, 0) = ""
     ccc(m, 1) = ""
     ccc(m, 2) = ""
     ccc(m, 3) = ""
     ccc(m, 4) = ""
     ccc(m, 5) = ""
     Next
     

    Sheet7.[a3].Resize(UBound(ccc), UBound(ccc, 2)) = ccc
End Sub
搜索更多相关主题的帖子: 编程 内容 For If Next 
2017-10-27 11:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-481825-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.764383 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved