2

我正在尝试编写一个宏,通过 Excel 工作簿将信息发送到 SharePoint 列表。但是,我似乎找不到语言来让它选择所需的值。

Public Function addtoSP(refRow As Integer, ws As Worksheet)
    Dim tbl     As ListObject
    Dim newR    As ListRow

    Set tbl = ws.ListObjects(1)
    Set newR = tbl.ListRows.Add

    With newR  
    .Range(6) = ws.Cells(i, 3).Value ' column 6 = choice field in SP. assignment error
    End With

end function
4

0 回答 0