L
Lolly
Hi,
I have a macro written like this.
Dim sAddr As String
Dim rng As Range, rng1 As Range
Set rng = Cells(Rows.Count, 1)
Set rng1 = Range("A:B").Find(What:="åˆè¨ˆ", _
After:=rng, _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not rng1 Is Nothing Then
sAddr = rng1.Address
Do
If rng1.Column = 1 Then
rng1.Offset(0, 1).Resize(, 3).ClearContents
ElseIf rng1.Column = 2 Then
rng1.Offset(0, -1).ClearContents
rng1.Offset(0, 1).Resize(, 3).ClearContents
End If
Set rng1 = Range("A:B").FindNext(rng1)
Loop While rng1.Address <> sAddr
End If
When I copy this macro in VBA editor.
The Kanji character changes to "??" from "åˆè¨ˆ"
at the following line.
Set rng1 = Range("A:B").Find(What:="??",
Due to this my macro is not running properly. Could anyone help me further
on this.
Any help would be highly appreciated.
Thanks a lot in advance.
I have a macro written like this.
Dim sAddr As String
Dim rng As Range, rng1 As Range
Set rng = Cells(Rows.Count, 1)
Set rng1 = Range("A:B").Find(What:="åˆè¨ˆ", _
After:=rng, _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not rng1 Is Nothing Then
sAddr = rng1.Address
Do
If rng1.Column = 1 Then
rng1.Offset(0, 1).Resize(, 3).ClearContents
ElseIf rng1.Column = 2 Then
rng1.Offset(0, -1).ClearContents
rng1.Offset(0, 1).Resize(, 3).ClearContents
End If
Set rng1 = Range("A:B").FindNext(rng1)
Loop While rng1.Address <> sAddr
End If
When I copy this macro in VBA editor.
The Kanji character changes to "??" from "åˆè¨ˆ"
at the following line.
Set rng1 = Range("A:B").Find(What:="??",
Due to this my macro is not running properly. Could anyone help me further
on this.
Any help would be highly appreciated.
Thanks a lot in advance.