Excel에서 단어를 찾고 해당 셀을 강조 표시하고 싶습니다. VBA를 사용하여 수행하는 방법. 내 코드가 전체 시트를 강조 표시하고 있습니다.나는 한 단어를 찾아 Excel에서 강조하고 싶습니다. 어떻게해야합니까?
은 코드 - 여기
Sub Foreign_Lang_Converter()
Sheets("Sheet2").Select
Value = 0
i = 1
Do While (Cells(i, 2) <> "")
Value = Value + 1
i = i + 1
Loop
Count = 0
For j = 1 To Value
a = Cells(j, 1)
b = Cells(j, 2)
Sheets("Sheet1").Select
Cells.Select
Selection.Find What:=a
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Selection.Replace What:=a, Replacement:=b
Sheets("Sheet2").Select
Next j
End Sub
, 그렇지 않으면 우리는에서 오류를 발견하기가 까다로운 찾을거야, 당신이 시도 코드를 게시하여 코드 ... – Dave
안녕 데이브, 내가 질문을 편집하고 내 코드를 추가했습니다. 보세요. !! – snigdha