Excel 怎么给选中的文字快速加上小括号
展开全部
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Application.EnableEvents = False
For Each c In Target.Cells
With c
If .Column = 1 Then Target.Value = "(" & .Value & ")"
End With
Next
Application.EnableEvents = True
End Sub
比如在A列,在需要加 括号的单元格里,双击下即可
On Error Resume Next
Application.EnableEvents = False
For Each c In Target.Cells
With c
If .Column = 1 Then Target.Value = "(" & .Value & ")"
End With
Next
Application.EnableEvents = True
End Sub
比如在A列,在需要加 括号的单元格里,双击下即可
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询