如果它们末尾有一个“”,则需要编辑C列中的单元格

0 excel vba

在C列中,会有几个不同的值。如果单元格末尾有一个“,我需要将其删除。

If .Cells(rw, 3).Value Like "*"*" Then


Run Code Online (Sandbox Code Playgroud)

不知道要在“然后”中添加什么

Sto*_*rax 7

我会那样做

If Right(.Cells(rw, 3).Value, 1) = Chr(34) Then
    .Cells(rw, 3).Value = Left(.Cells(rw, 3).Value, Len(.Cells(rw, 3).Value) - 1)
End If
Run Code Online (Sandbox Code Playgroud)