Private Sub CommandButton22_Click()
row_number = 6
Do
DoEvents
row_number = row_number + 1
item_description = ActiveSheet.Range("B" & row_number)
If InStr(item_description, "Direct Credit") > 0 Then
item_description = ActiveCell.Activate
ActiveCell.Value = Right(ActiveCell, Len(ActiveCell) - 21)
End If
Loop Until item_description = B1000
End Sub
嗨修剪Excel单元格,符合特定条件的
我需要修剪前21个字符,如果特定的细胞与“直接信贷”开始?
我的代码在“Then”之后出现了错误If ...
Can Some one help please please?
通常包含一些文本可以解释代码如何回答问题或解决问题以及裸代码是有帮助的。 – Makyen 2015-02-12 11:04:44