私はコピーが必要なテキストを検索するコードをいくつか持っていますが、これは数式を引き継いでいることに気付きました。セルの値を貼り付けるだけでいいです。私はそれを実現するために次のように編集する方法がわかりません。何かご意見は?数値だけをコピーして式を編集するコードを編集する
With Initiatives.Range("B3:B500")
Rcount = 0
For I = LBound(MyArr) To UBound(MyArr)
Set Rng = .Find(What:=MyArr(I), _
After:=.Cells(.Cells.Count), _
LookIn:=xlFormulas, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
FirstAddress = Rng.Address
Do
Rcount = Rcount + 1
Rng.EntireRow.Copy NewSh.Rows(Rcount)
Set Rng = .FindNext(Rng)
Loop While Not Rng Is Nothing And Rng.Address <> FirstAddress
End If
Next I
End With
'NewSh.Rows(RCOUNT).VALUE = Initiatives.Rows(Rng.Rowは)うまくあなたに感謝 –
@ScottCranerを.value'!あなたが答えとしてそれを投稿するならば、私は質問を終わらせるためにそれを受け入れることを喜んで行うでしょう。副次的な問題として、フォーマットをコピーして式をコピーしないようにこれを修正する方法はありますか? – TonyP