想把

转换成

用于Excel 批量导入
做了一下VBA 方便账户和角色分配导入
excel 开发 插入按钮

双击button
下入代码如下
Private Sub CommandButton1_Click()
Dim i, j, i1, j1
i1 = 1
For i = 3 To 13 '列
For j = 2 To 93 '行
If IsEmpty(Cells(j, i)) Then
Else
Cells(i1, 1) = Cells(1, i) '账户
Cells(i1, 2) = Cells(j, i) '角色
i1 = i1 + 1
End If
Next
Next
End Sub
为basis 分配账户整理数据减轻负担了

创建了一个VBA宏,通过双击按钮触发,从Excel表格的特定行列中提取账户和角色信息,进行批量导入操作,简化了数据处理的步骤。
1097

被折叠的 条评论
为什么被折叠?



