SharePoint Pals
 | Sign In
Sync Excel with SharePoint list for Bulk Insert & Update Records.
by Arunraj Venugopal 30 Mar 2015
SharePoint Developer
Today  :   7     Total  :    11974

By default, Sync excel with Sharepoint list was available with the previous version of excel, but the synch feature is not existing in the excel 2010 version onwards for which in Google, add one synchronization reference should be uploaded in the excel file which is not working.

When we export the sharepoint list into excel, the synchronization option will not be available in the right click properties for which the below macro to be added and executed to get the desire sharepoint list and sync option in the right click properties.

Let us look at the steps to synch excel with sharepoint list.

1. Open an excel file and press Alt +F11. Select Workbook from the list.


2. Following macro to be added in the workbook open method

 Dim ws  As worksheet
 Set ws =thisworkbook.worksheets(1)
 Dim src(1) As Variant
 Src(0) =”  & ”/_vi_bin”
 Src(1) =”D28c1csD-F969-47C1-9C0C-61CAEB57C26A” (List Id)
 If ws.listObjects.count = 0 then
 	Ws.ListObjects.Add xlSrcExternal, src,True,xlYes, ws.Range(“A1”)
   Set ObjListObj=ws.ListObjects(1)
 End if 

The macro will fetch data from the list “Test” in the SharePoint site “experiments” and insert into the excel sheet 1.

3. Go to SharePoint site and the list which has to be sync with excel file. Click Export to Excel


4. Click Enable button


5. Click Data -> Connection->Properties


6. Click Definition tab and copy the content in the Command Text field& close the excel file.clip_image009

7. The value for src(1) is <LISTNAME>{D28C1C5D-F969-47C1-9C0C-61CAEB57C26A}</LISTNAME>

8. The value for src(0) is <LISTWEB></LISTWEB>

9. Save the excel file as Excel 97-2003 workbook


10. Whenever the workbook is opened, the macro get executed and retrieved the SharePoint list into the excel sheet if the macro is enabled by default. Otherwise click enable macro at the top of the excel file.

11. Execute the Update method once the insert or update process is done. Or

Right click on the sheet in which the sharepoint list data retrieved from the SP and select Sync with sharepoint list. In this case, no need to use the below code..


12. Press F8 (line by line execution ) or F5 to execute the macro

13. Refresh the SharePoint list to make sure that the insert / modify records are synchronized with the list

blog comments powered by Disqus

SharePoint Pals

SharePoint Pals, a community portal for SharePoint developers, Administrators and End Users. Let's join hands and share the point together.
Read this on mobile


Angular Js Training In Chennai
Advanced Angular Js training with real world developer scenarios
Angular Js, Web Api and Ionic for .Net Developers
All in one client side application development for .Net developers
Angular Js For SharePoint Developers
Get ready for the future. Its no more just C#

Get Connected

SharePoint Resources

SharePoint 2013 and 2010 Web Parts
Free Web Parts with Source Code for SharePoint Community

SharePoint 2013 Books and Tutorials
Collection of free SharePoint 2013 books and tutorials (eBooks, pdfs)

Supported By

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to in a word document.

Related Resources

Recent Tweets

Twitter October 23, 22:21
How to Add/Remove User Custom Actions (in Site Actions Menu) Programmatically using CSOM PNP in SharePoint -

Twitter October 21, 21:34
How to Add a JS Link Reference to the Display Form or Any other ASPX Programmatically using CSOM PNP in SharePoint -

Twitter October 20, 13:01
How to Add a JS Link Reference to the NewForm and EditForm Programmatically using CSOM PNP in SharePoint Office 365-

Twitter October 12, 12:15
How to Deploy Provider Hosted Apps (Add-Ins) by App Stapling in SharePoint Office 365 -

Twitter October 11, 13:39
How to Deploy Provider HostedApp programmatically using CSOM in SharePoint Office 365 Activating Developer Feature -

Follow us @SharePointPals
Note: For Customization and Configuration, CheckOutRecent Tweets Documentation