全部自动编号小班

Posted lbsjs

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了全部自动编号小班相关的知识,希望对你有一定的参考价值。


Sub paixu(ByRef xian_arr as Collection)
maxnban = 0
maxban = 0
Dim lindi_arr As New Collection

For i= 1 To xian_arr.Count Step 1
If xian_arr(i) < 8000 Then
lindi_arr.Add Cells(i, 1).Value
End If
If maxnban < xian_arr(i) Then
maxnban = xian_arr(i)
End If
i = i + 1
Next

For i = 1 To lindi_arr.Count Step 1
If maxban < lindi_arr(i) Then
maxban = lindi_arr(i)
End If
Next

 

End Sub

 

 

 

 

 

 


i = 1
Dim xian_arr As New Collection
only_one_xiaoban = true
cun_xiaoban_end = false


Do While Cells(i, 1).Value <> ""

If Cells(i,1).Value = Cells(i+1,1) Then
xian_arr.Add Cells(i,1).Value
only_one_xiaoban = false
End If
If only_one_xiaoban = true Then
Cells.(i,3).Value = Cells.(i,1).Value
End If
If Cells(i,1).Value <> Cells(i+1,1) and only_one_xiaoban = false Then
xian_arr.Add Cells(i+1,1)
only_one_xiaoban = true
cun_xiaoban_end = true
End If
If cun_xiaoban_end = true Then

Next


End If

Loop

以上是关于全部自动编号小班的主要内容,如果未能解决你的问题,请参考以下文章

小班编号2

arcgis设计的点如何自动编号

使用实体框架自动编号

word中编号后的空格怎么去掉

cad文件自动加载到小班中

SqlServer--delete和truncate 删除表的区别