返回列表 上一主題 發帖

[發問] 有關編號顯示問題~~~~

回復 1# afu9240
  1. Option Explicit
  2. Private Sub ComboBox1_Change()
  3.     Dim E As Range, St As String
  4.     With 工作表1
  5.         For Each E In .Range("a:a").SpecialCells(xlCellTypeConstants)
  6.             If E Like ComboBox1 & "*" Then
  7.                 St = IIf(Replace(E, ComboBox1, "") > St, Replace(E, ComboBox1, ""), St)
  8.             End If
  9.         Next
  10.         If St = "" Then St = 0
  11.     End With
  12.     TextBox1.Text = ComboBox1 & Format(St + 1, "00000")
  13. End Sub
複製代碼
感恩的心......(在麻辣家族討論區.用心學習會有進步的)
但資源無限,後援有限,  一天1元的贊助,人人有能力.

TOP

        靜思自在 : 得理要饒人,理直要氣和。
返回列表 上一主題