【发布时间】:2021-07-23 03:40:19
【问题描述】:
我有一列有 7000 多个名字。我想让每个名字的长度不超过5。这是我尝试过但不起作用的方法
Sub del()
Dim myCell
Set myCell = ActiveCell
Dim count As Integer
count = Len(ActiveCell)
While count > 5
myCell = Left(myCell, Len(myCell) - 1)
myCell.Offset(1, 0).Select
Set myCell = ActiveCell
Wend
End Sub
【问题讨论】: