拝啓
する必要がある
-VBAでCTRL+Hと同じようにシートExcel内のテキストを検索して置換する方法
私が見つけたように https://www.extendoffice.com/documents/excel/1720-xcel-find-and-replace-chart-title.html テキストボックスとグラフについて
「シート Excel のテキストを検索して置換する (VBA と同じ CTRL+H)」が必要な場合
ありがとうございました
アート
このコードを修正しても機能しません参照
する必要がある
-VBAでCTRL+Hと同じようにシートExcel内のテキストを検索して置換する方法
私が見つけたように https://www.extendoffice.com/documents/excel/1720-xcel-find-and-replace-chart-title.html テキストボックスとグラフについて
「シート Excel のテキストを検索して置換する (VBA と同じ CTRL+H)」が必要な場合
ありがとうございました
アート
このコードを修正しても機能しません参照
Sub TextBoxReplace()
'Updateby20140603
Dim xWs As Worksheet
Dim xFindStr As String
Dim xReplace As String
Dim YY As String
xFindStr = Application.InputBox("Find:", xTitleId, "", Type:=2)
xReplace = Application.InputBox("Replace:", xTitleId, "", Type:=2)
Set xWs = Application.ActiveSheet
On Error Resume Next
For
Each YY In xWs.Worksheest("Sheet1").Range("A2:Z")
xValue = shp.TextFrame.Characters.Text
shp.TextFrame.Characters.Text = VBA.Replace(xValue, xFindStr, xReplace, 1)
Next
Each YY In xWs.Worksheets("Sheet2").Range("A2:Z")
xValue = shp.TextFrame.Characters.Text
shp.TextFrame.Characters.Text = VBA.Replace(xValue, xFindStr, xReplace, 1)
Next
Each YY In xWs.Worksheets("Sheet3").Range("A2:Z")
xValue = shp.TextFrame.Characters.Text
shp.TextFrame.Characters.Text = VBA.Replace(xValue, xFindStr, xReplace, 1)
Next
Each YY In xWs.Worksheets("Sheet4").Range("A2:Z")
xValue = shp.TextFrame.Characters.Text
shp.TextFrame.Characters.Text = VBA.Replace(xValue, xFindStr, xReplace, 1)
Next
End Sub