想把
转换成
用于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 分配账户整理数据减轻负担了