EXCEL怎样在单元格的数字前批量加同样的字母,如:123122123前加上A
推荐于2016-01-16
展开全部
以下代码可以实现Sub 按钮1_单击()
Dim X As String
Dim Y As String
Dim Z As String
Dim I As Integer
Dim M As String
Dim N As String
Dim K As String
Dim j As integer'K = InputBox(Prompt:="输入要加的字符!")j= InputBox(Prompt:="输入终止行!") I = 1
For I = 1 To j Z = "A" & I
M = Range(Z)
N = K & M
If Range(Z) <> "" And Range(Z) <> 0 Then
Range(Z).Select
Range(Z) = N
End If
Next I
End Sub
Dim X As String
Dim Y As String
Dim Z As String
Dim I As Integer
Dim M As String
Dim N As String
Dim K As String
Dim j As integer'K = InputBox(Prompt:="输入要加的字符!")j= InputBox(Prompt:="输入终止行!") I = 1
For I = 1 To j Z = "A" & I
M = Range(Z)
N = K & M
If Range(Z) <> "" And Range(Z) <> 0 Then
Range(Z).Select
Range(Z) = N
End If
Next I
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-01
展开全部
如果你的数据在A2,在B2输入="A"&A2向下填充
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |