Dydd Mercher, 05 2020 Chwefror
  1 atebion
  Ymweliadau 4.1K
0
Pleidleisiau
Dadwneud
Annwyl Syr
Mae angen i mi 
-Sut i Ddarganfod ac Amnewid Testun Ar y ddalen rhagorwch yr un CTRL+H â VBA
Fel y canfyddaf https://www.extendoffice.com/documents/excel/1720-xcel-find-and-replace-chart-title.html  am blwch testun a siart 
OS oes angen "Dod o Hyd i'r Testun a'i Amnewid Ar y Ddalen Excel yr un CTRL+H â VBA"
Diolch yn fawr
celf
Mae'r cod hwn fy adolygiad nid gwaith yn cyfeirio
 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

blynyddoedd 3 yn ôl
·
#2071
0
Pleidleisiau
Dadwneud
Amnewid un gwerth ag un arall
Mae'r camau manwl yn dilyn isod. Dewiswch yr ystod o gelloedd lle rydych chi am ddisodli testun neu rifau. I ddisodli nod(au) ar draws y daflen waith gyfan, cliciwch ar unrhyw gell ar y ddalen weithredol. Pwyswch y llwybr byr Ctrl + H i agor y tab Amnewid o'r deialog Darganfod ac Amnewid Excel.
  • Tudalen:
  • 1
Ni wnaed unrhyw atebion i'r swydd hon eto.