运行时错误70权限被拒绝

时间:2016-11-10 13:59:30

标签: excel-vba userform vba excel

我收到错误

  

运行时错误70权限被拒绝

尝试提供组合时。我目前的代码:

Private Sub UserForm_Initialize()
    Dim x As Long
    Dim sht As String

    sht = Sheets(1).Name
    Sheets(sht).Select
    x = 2

    Do While x <= 27
        cboUserID.AddItem Range("A" & x).Value
        x = x + 1
    Loop
End Sub

0 个答案:

没有答案