richh
Board Regular
- Joined
- Jun 24, 2007
- Messages
- 245
- Office Version
- 365
- 2016
I have a program that updates my SP list upon save. It worked on my previous list, but I'm attempting to make it work on a new list.
I can pull the data down automatically, overwrite the data on the list, but I get an error when I attempt to save the changes.
I can pull the data down automatically, overwrite the data on the list, but I get an error when I attempt to save the changes.
Code:
Public Function spEdit(wb As Workbook)
Dim ws As Worksheet
Dim src(0 To 2) As Variant
Dim guiid As String
Set ws = wb.Worksheets("Data")
src(0) = " 'tableSource
src(1) = "{}" 'tableID
src(2) = "{}" 'GUID
ws.ListObjects.Add xlSrcExternal, src, True, xlYes, ws.Range("A1")
End Function
Last edited: