返回列表 上一主題 發帖

[發問] 找了好幾天 找不出錯誤,請協助?

回復 2# ltwinery
  1. With Sheets("material").Columns("A")
  2.             Set rng = .Find(What:=MySearch, LOOKAT:=xlWhole)
  3.             If Not rng Is Nothing Then
  4.                 FirstAddress = rng.Address
  5.                 Do
  6.                     temp = rng.Offset(0, 1).Text
  7.                     Set rng = .Find(What:=MySearch, After:=rng)     '函數裡要有 After:=rng
  8.                     i = i + 1
  9.                 Loop While Not rng Is Nothing And rng.Address <> FirstAddress
  10.             End If
  11.     End With
複製代碼
感恩的心......(在麻辣家族討論區.用心學習會有進步的)
但資源無限,後援有限,  一天1元的贊助,人人有能力.

TOP

        靜思自在 : 話多不如話少,話少不如話好。
返回列表 上一主題