返回列表 上一主題 發帖

[發問] 代替COPY ???

  1. Sub CommandButton1_Click()
  2.     Dim i As Integer, A As Integer, C As Integer
  3.     With Range("I65536").End(xlUp).Offset(1)
  4.         .Cells = [H1]
  5.         i = 1
  6.         Do
  7.             A = IIf(i = 1, i, i + 1)
  8.             i = Application.WorksheetFunction.Find(",", .Cells, i + 1)
  9.             C = [H1].Characters(Start:=A, Length:=i - A).Font.ColorIndex
  10.             .Characters(Start:=A, Length:=i - A).Font.ColorIndex = C
  11.         Loop Until i >= Len(.Cells)
  12.     End With
  13. End Sub
複製代碼
感恩的心......(在麻辣家族討論區.用心學習會有進步的)
但資源無限,後援有限,  一天1元的贊助,人人有能力.

TOP

        靜思自在 : 時時好心就是時時好日。
返回列表 上一主題