Syncronize excel to Sharepoint list (i.e. a site calendar)

Hi
I need some help relating to syncing an excel sheet saved on sharepoint to a calendar on the same sharepoint site.
What I have is as follows:
1. A project site with an excel sheet save in a document app.
2. A Calendar on the project site.
That excel sheet has numerous formulas where there are two output columns, one with a date (i.e. date output) and one with a document name (Document output).
What i would like to happen is as follows: When the "date output" cell (which is normally blank) populates with a date i would like the accompanying "document output" cell to populate into the "date output" date on the site's
calendar.  I have read a number of comments on syncing lists back to excel but none seem to pop out as answering my query. I have no idea if this is possible.
Any help would be appreciated.
Ray

Hi,
Let’s verify that whether the two output columns are document library columns or in the excel sheet table. 
If they are document library columns, you can create a workflow with SharePoint Designer using 2010 platform, choose create the list item action, create
list items into a calendar list.  Configure the document
library columns to match the columns in the calendar.
Here is a link about how to use Create List Item Action, you can use as a reference:
http://blogs.salmanghani.info/create-item-workflow-sharepoint-designer-2010/
If you have any question about this issue, 
please feel free to reply me.
Best Regards,
Lisa Chen

Similar Messages

  • Update Excel to sharepoint and edit the data.

    Hi experts,
    Happy New Year to all,
    I would like to know is it possible to update my excel sheet having 10 different fields (Columns) to share point, and edit them as a list. Want to know step by step procedure.
    My requirement is as below
    I want to update the list of activities for each member of my team, in a excel in the first 5 columns and then upload to the share point daily, as my team members were placed in different locations, I want them to update their achivements
    for the day in the next 5 respctive columns. By filtering on their names respectively. So that  I can check online and take the report back to excel whenevery i required.
    I want to know
    1) Step by step procedure I can upload the excel to share point
    2) is it possible to restrict the data on particular field, to respective users.
    Request to let me know how i can achive.

    Excel and SharePoint List does not allow two way sync it is only unidirectional.
    You have to go by Scott's suggestions or else Office Web Apps which will allow excel Semiformal co-authoring (http://office.microsoft.com/en-us/sharepoint-server-help/document-collaboration-and-co-authoring-HA101812148.aspx).
    Here is how you can use the import Excel funcationality in SharePoint custom list.
    1. Define a table to your Excel Data and Save the excel file
    2. Go to your site, create a new list either using Site Settings or All site content menu, by selecting Import SpreedSheet
    3. select table in the import dialog box
    SharePoint will create a new list with the excel data.
    As per your requirement , the challenges that we have are -
    "a excel in the first 5 columns and then upload to the share point daily"
    You cannot reimport excel to a list as per your above requirement, there is only one way of importing to a list library and every time it will create a new list.
    " I can check online and take the report back to excel whenevery i required."
    You can export the list to excel file for processing offline and again there is no resync between Excel and List.
    "is it possible to restrict the data on particular field, to respective users"
    You can use item level permission for restricting user access to a list item or use SharePoint designer custom workflow to give item level access.
    http://www.sharepointbriefing.com/spcode/article.php/3911751/Implementing-ItemLevel-Security-in-SharePoint-2010-and-2007.htm
    http://social.msdn.microsoft.com/Forums/en-US/1911c999-8083-4d35-9cdc-3b9c3a7242a7/how-to-create-item-level-permission-for-list-in-sharepoint-2010?forum=sharepointgeneralprevious
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Excel 2010 Synchronize List with SharePoint List using VBA

    I have used and loved the interaction between Excel and SharePoint for many generations of both solutions.  It's a wonderful opportunity to integrate the familiarity and simplicity of Excel (formatting, ease of use, availability) with the data storage
    and centralized list capabilities of SharePoint.  Right?
    When upgrading to Excel 2010, I have noticed with much dismay that much of the inherent easy to use features of previous versions were effectively stripped from this newest version.  Much research, time and energy has been spent working around and resolving
    the deficiency.  One Microsoft based article,
    http://support.microsoft.com/kb/930006, has provided the mechanics behind utilizing the "hidden" functionality... although, this capability to use VBA to create the synchronized list was available in previous versions.  However, once Microsoft
    published this article to this "hidden" functionality... I feel that the behavior should be supported by Microsoft in some way.  OK?
    Revised instructions to reproduce the problem:
    1. Create a SharePoint list with 20 dummy records.
    - Note the List Name  ##LIST_NAME##
    - Note the View GUID  ##VIEW_GUID##
    - Note SharePoint Base URL  ##BASE_URL##
    2. REVISED... In Excel 2010, save the file as Compatible "Excel 97-2003 Workbook".  Close the file and reopen.  Create a connected table (ListObject) in Excel using the article above to the SharePoint list.  Use Sample VBA code
    below:
    Sub LinkedSharePointList()    
    ActiveSheet.ListObjects.Add SourceType:=xlSrcExternal,_
        Source:=Array(##BASE_URL## & "/_vti_bin", ##LIST_NAME##, _
        ##VIEW_GUID##), LinkSource:=True, Destination:=Range("A1")
    End Sub
    3. OOPS REVISED this item.  The problem is actually with ROW 21... So, update record on row 21... (no matter where the table is located... (if the "Destination" is "A1", then the problem is with ID=20, but if the Table is
    shifted down to say A12, then ID=9 on row 21).  Anyway... make a simple change to that record... and you'll see the ID immediately change.... as if it's a NEW record.  WEIRD!  Note: If the sheet is protected, then an error is displayed
    indicating that a "read-only" record cannot be updated (referring to the ID cell in column A for the current row). 
    4. Now "synchronize" the list with excel.  The former record is still in the list unchanged AND there is a NEW record in the list holding the changes.  There are a number of problems that seem to ONLY occur when something changes to ROW
    21.... Next, try to copy/paste multiple records across multiple rows that intersect with ROW 21.  Yikes!! 
    I look forward to hearing others' experience!
    Thanks!
    Mark

    Here are some things that you can try (change the code, where appropriate):
    Private Sub CreateList()
        Dim folder As folder
        Dim f As File
        Dim fs As New FileSystemObject
        Dim RowCtr As Integer
        RowCtr = 1
        Set folder = fs.GetFolder("http://excel-pc:43231/Shared Documents/Forms/") '<=Variable Location
        For Each f In folder.Files
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        Next f
    End Sub
    Sub ListAllFile()
     Dim objFSO As Object
     Dim objFolder As Object
     Dim objFile As Object
     Dim pth As String
     Dim WBn As Workbook
     Dim ObCount As Long
     Dim FileNme As String
     Application.ScreenUpdating = False
     Set objFSO = CreateObject("Scripting.FileSystemObject")
     'Get the folder object associated with the directory
     Set objFolder = objFSO.GetFolder("\\excel-pc:43231\Shared Documents\Forms\")
    '** You'll need to specify your path here. By removing the http: from the path, the code liked it & found the folder. It wasn’t working previously ***
     pth = "http://excel-pc:43231/Shared Documents/Forms/"
    '** You'll need to specify your path here. The reason I’ve done this separately is because the path is not recognised otherwise when trying to specify it with workbook.open & using the value set for objFolder **
     ObCount = objFolder.Files.Count
    '** counts the number of files in the folder
     'Loop through the Files collection
     For Each objFile In objFolder.Files
     Nm1 = Len("http://excel-pc:43231/Shared Documents/Forms/")
    '** You'll need to specify your path here **
     Nm2 = Len(objFile) - Nm1
     FileNme = Right(objFile, Nm2)
    '** I’ve done this part to find out/set the file name**
     Set WBn = Workbooks.Open(pth & FileNme, , , , Password:="YourPassword")
    '** opens the first file in the library – if there is no password, the remove everything from - , , , , Password:="Password1" – leaving the close bracket ‘)’
     Application.ScreenUpdating = False
    '** optional – you can leave the screen updating on
    '<< Your coding here>>
    '** The file is now open. Enter whatever code is specific to your spreadsheets.
     Next
    '** goes to next file within your sharepoint folder
    End Sub
    Sub SharePoint()
    Dim xlFile As String, xlFullFile As String
    Dim xlApp As Excel.Application
    Dim wb As Workbook
    xlFile = "\\excel-pc:43231\Shared Documents"
    'http://excel-pc:43231/Shared Documents/
    '****----denotes the path.(i.e) u give the path as windows search.Don't use "\" at the end.
    'In the sharepoint path %20 denotes space.so u remove that and use space .
    Set xlApp = New Excel.Application
    xlApp.Visible = True
    xlFullFile = GetFullFileName(xlFile, "Book") 'ANZ denotes starting characters of the file.
    xlFile = xlFile & "\" & xlFullFile
    Set wb = xlApp.Workbooks.Open(xlFile, , False)
    'Once the workbook is opened u can do ur code here
    wb.Close False
    End Sub
    Function GetFullFileName(strfilepath As String, _
    strFileNamePartial As String) As String
    Dim objFS As Variant
    Dim objFolder As Variant
    Dim objFile As Variant
    Dim intLengthOfPartialName As Integer
    Dim strfilenamefull As String
    Set objFS = CreateObject("Scripting.FileSystemObject")
    Set objFolder = objFS.GetFolder(strfilepath)
    'work out how long the partial file name is
    intLengthOfPartialName = Len(strFileNamePartial)
    For Each objFile In objFolder.Files 'Instead of specifying the starting characters of the file you can directly loop through all files in the folder .
    'Test to see if the file matches the partial file name
    If Left(objFile.Name, intLengthOfPartialName) = strFileNamePartial Then
    'get the full file name
    strfilenamefull = objFile.Name
    Exit For
    Else
    End If
    Next objFile
    Set objFolder = Nothing
    Set objFS = Nothing
    'Return the full file name as the function's value
    GetFullFileName = strfilenamefull
    End Function
    Sub SrchForFiles()
    ' Searches the selected folders and sub folders for files with the specified (xls) extension.
    'ListTheFiles 'get the list of all the target XLS files on the SharePoint Directory
    Dim i As Long, z As Long, Rw As Long, ii As Long
    Dim ws As Worksheet, dd As Worksheet
    Dim y As Variant
    Dim fldr As String, fil As String, FPath As String
    Dim LocName As String
    Dim FString As String
    Dim SummaryWB As Workbook
    Dim SummaryWS As Worksheet
    Dim Raw_WS As Worksheet
    Dim LastRow As Long, FirstRow As Long, RowsOfData As Long
    Dim UseData As Boolean
    Dim FirstBlankRow As Long
    'grab current location for later reference, for where to paste final data
    Set SummaryWB = Application.ActiveWorkbook
    Set SummaryWS = Application.ActiveWorkbook.ActiveSheet
    y = "xls"
    fldr = "\\excel-pc:43231\Shared%20Documents\Forms\AllItems.aspx"
    FirstBlankRow = 2
    'asd is a 1-D array of files returned
    asd = ListFiles(fldr, True)
    Set ws = Excel.ThisWorkbook.Worksheets(1) 'list of files
    ws.Activate
    ws.Range("A1:Z100").Select
    Selection.Clear
    On Error GoTo 0
    For ii = LBound(asd) To UBound(asd)
    Debug.Print Dir(asd(ii))
    fil = asd(ii)
    'open the file and grab the data
    Application.Workbooks.Open (fil), False, True
    'Get file path from file name
    FPath = Left(fil, Len(fil) - Len(Split(fil, "\")(UBound(Split(fil, "\")))) - 1)
    'Get file information
    If Left$(fil, 1) = Left$(fldr, 1) Then
    If CBool(Len(Dir(fil))) Then
    z = z + 1
    ws.Cells(z + 1, 1).Resize(, 6) = _
    Array(Dir(fil), LocName, RowsOfData, Round((FileLen(fil) / 1000), 0), FileDateTime(fil), FPath)
    DoEvents
    With ws
    .Hyperlinks.Add .Range("A" & CStr(z + 1)), fil
    '.FoundFiles(i)
    End With
    End If
    End If
    'Workbooks.Close 'Fil
    Application.CutCopyMode = False 'Clear Clipboard
    Workbooks(Dir(fil)).Close SaveChanges:=False
    Next ii
    With ws
    Rw = .Cells.Rows.Count
    With .[A1:F1]
    .Value = [{"Full Name","Location","Rows of Data","Kilobytes","Last Modified", "Path"}]
    .Font.Underline = xlUnderlineStyleSingle
    .EntireColumn.AutoFit
    .HorizontalAlignment = xlCenter
    End With
    .[G1:IV1 ].EntireColumn.Hidden = True
    On Error Resume Next
    'Range(Cells(Rw, "A").End(3)(2), Cells(Rw, "A")).EntireRow.Hidden = True
    Range(.[A2 ], Cells(Rw, "C")).Sort [A2 ], xlAscending, Header:=xlNo
    End With
    End Sub
    Function ListFiles(ByVal Path As String, Optional ByVal NestedDirs As Boolean) _
    As String()
    Dim fso As New Scripting.FileSystemObject
    Dim fld As Scripting.folder
    Dim fileList As String
    ' get the starting folder
    Set fld = fso.GetFolder(Path)
    ' let the private subroutine do all the work
    fileList = ListFilesPriv(fld, NestedDirs)
    ' (the first element will be a null string unless the first ";" is removed)
    fileList = Right(fileList, Len(fileList) - 1)
    ' convert to a string array
    ListFiles = Split(fileList, ";")
    End Function
    ' private procedure that returns a file list
    ' as a comma-delimited list of files
    Function ListFilesPriv(ByVal fld As Scripting.folder, _
    ByVal NestedDirs As Boolean) As String
    Dim fil As Scripting.File
    Dim subfld As Scripting.folder
    ' list all the files in this directory
    For Each fil In fld.Files
    'If UCase(Left(Dir(fil), 5)) = "MULTI" And fil.Type = "Microsoft Excel Worksheet" Then
    If fil.Type = "Microsoft Excel Worksheet" Then
    ListFilesPriv = ListFilesPriv & ";" & fil.Path
    Debug.Print fil.Path
    End If
    Next
    ' if requested, search also subdirectories
    If NestedDirs Then
    For Each subfld In fld.SubFolders
    ListFilesPriv = ListFilesPriv & ListFilesPriv(subfld, NestedDirs)
    Next
    End If
    End Function
    Finally . . .
    Sub ListFiles()
        Dim folder As Variant
        Dim f As File
        Dim fs As New FileSystemObject
        Dim RowCtr As Integer
        Dim FPath As String
        Dim wb As Workbook
        RowCtr = 1
        FPath = "http://excel-pc:43231/Shared Documents"
        For Each f In FPath
        'Set folder = fs.GetFolder("C:\Users\Excel\Desktop\Ryan_Folder")
        'For Each f In folder.Files
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        Next f
    End Sub
    Sub test()
        Set objFSO = CreateObject("Scripting.FileSystemObject")
        Set objFolder = objFSO.GetFolder("C:\Users\Excel\Desktop\Ryan_Folder")
        'Set colSubfolders = objFolder.SubFolders
        'For Each objSubfolder In colSubfolders
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        'Next
    End Sub
    Ryan Shuell

  • Excel Services with SharePoint List Data in SharePoint 2013 - Chart is not refreshing automatically

    Hi Everyone,
    This is My req: I m going to display pie chart and Bar chart in share point 2013.
    Steps I have follwed:
    1. Export the list to excel.
    2.Using the Power Pivot table I have done the chart.
    3. Uploaded into document Library.
    4. Added into the web part. 
    Chart are displaying. But When ever user added the data into the list chart is refreshing.
    Is there any option to refresh the data in chart? Waiting for valuable replies.
    Regards, Manoj Prabakar

    SharePoint lists as data sources in Excel Services is not supported.That's the reason refreshing is not working. There are some work around you can use  -
    Export as Data Feed - Export your SharePoint list as Data Feed , use this data feed to a PowerPivot for Excel workbook and publish this PowerPivot using Excel Services.
    User-defined functions  - write UDF in C# and extend the Excel Services functionality to work with SharePoint lists.
    https://msdn.microsoft.com/library/bb267252(office.12).aspx#Office2007ExcelServicesUnlimited_SharePointLists
    Web Services API -
    The Web Services API can be used to push data from a database and then refresh the data in a SharePoint Server list by using Excel Services.
    JavaScript Object Model - The JavaScript Object Model for Excel Services in Microsoft SharePoint Server 2010 provides many solutions for Excel Services.
    More details  - 
    https://technet.microsoft.com/en-us/library/gg576960.aspx
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Excel Spreadsheet as Data Source & Copying that Data to an Existing SharePoint List

    Hello,
    I have an Excel spreadsheet that I get daily and cut and paste into an existing SharePoint list. Is there a way to make that Excel spreadsheet a data source and copy the data to an existing SharePoint list with less manual involvement?
    Tools at my disposal include: SharePoint 2010 Designer, InfoPath, and Access.
    I thought there might be a REST method I could use via InfoPath but I'm not aware of any offhand.
    Goal is to have a method to upload/overwrite an Excel file (stored in a SharePoint library), every day, and then automate the process of copy it to a SharePoint list (actually overwriting the old data in the SharePoint list).
    Any help would be greatly appreciated.

    Hi,
    We can create a console application and use C# code to read the data from the Excel file and using SharePoint .Net Client Object Model to add the data into a SharePoint list, then create a windows job to execute the console application.
    The following articles for your reference:
    How to: Create a Console Application
    https://msdn.microsoft.com/en-us/library/office/ms438026(v=office.14).aspx
    C# How To Read .xlsx Excel File With 3 Lines of Code
    http://www.codeproject.com/Tips/801032/Csharp-How-To-Read-xlsx-Excel-File-With-Lines-of
    How to: Create, Update, and Delete List Items
    https://msdn.microsoft.com/en-us/library/office/ee539976%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Schedule a task
    http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Upload Excel data to Sharepoint list VIA infopath form

    Hi,
    I'll try to explain the process of what I want to do first.
    1. In Excel
    I have an exceldocument (XLS, XLSX or XLSM) with 4 named columns and a named worksheet saved locally on my computer.
    I want to upload this data into preferably a custom list in sharepoint but it needs to run via a infopath template first.
    2. In Infopath
    The Infopath template will prompt the user to specify values in 2 additional fields.
    After giving input to these fields user may browse for the locally stored excel document and upload the document.
    In the same infopath template a dynamic array should be visible containing 6 columns (4 from excel + 2 from headerlevel of template) and the amount of rows based on the number of rows from excelsheet.
    At the end of template a submit button is found for uploading the entire array into sharepoint custom list.
    Is this possible to do at all?
    NOTE! End user should not have to save the excelsheet as XML file nor do a XML mapping.
    Infopath should, perhaps with help of VBA read excelsheet and transfer data to correct destination in sharepoint on it self.
    Looking forward to your reply

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Excel VBA to access sharepoint list without permission

    Hi,
    I do find solution to retrieve the SharePoint list from excel VBA but my problem now is on the SharePoint permission to the list.
    I am developing this solution in excel because i don't want the particular user to access the list direct from the portal because the list contains some unique and confidential data. So what i did was created a new view in the portal with selected column
    and i connect to the view from excel. So every time the user want to retrieve the data, he can run macro to refresh the data in the excel.
    When i run the macro it can generate the list because i do have permission but if i run the same macro on the person machine, excel request for username and password because he don't have the permission to the list.
    Are there any work around to allow the user to generate the data in excel without permission to the SharePoint list.
    Thanks for the help.

    I've done this before using SQL Server Reporting Services integrated into SharePoint.
    Using SSRS, create the report you want the end user to view. Then create a Report Subscription, emailing the end user (or putting it in a file share/Doc Lib) the report. If they want to run it interactively, you can enable caching on the report, which would
    pull the report from the last time it was scheduled to run (the data would not be 'real time' in this case).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to retrieve sharepoint list data and show it on excel-addin using C#

    Hi,
    we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
    . once data is shown on excel , user modifies it and update/save the record back to sharepoint.
    can you please give some samples and suggest any links to start with development.
    Thanks
    chaitu

    Hi chaituatp,
    For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
    How to: Retrieve List Items using JavaScript:
    http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
    VSTO application show data in datagridview:
    http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Unable to connect to SharePoint list data from PowerPivot in Excel

    Hi,
    I have the PowerPivot excel add-in installed and I can connect successfully to SQL data.  I have two SharePoint farms - Farm 1 and Farm 2.
    I am able to connect PowerPivot to SharePoint lists in multiple web applications in Farm 1 by using the ListData.svc.
    e.g. https://farm1/_vti_bin/ListData.svc/Tasks
    In Farm 2 I am unable to connect to SharePoint data.  I have tried multiple web applications on Farm 2 and can't connect.  I receive the following error.  I am able to browse to the address in Internet Explorer and see a feed.
    Has anyone else had this error?
    Thanks in advance,
    Mark
    Error Message:
    ============================
    Cannot connect to the specified feed. Verify the connection and try again. Reason: The underlying connection was closed: An unexpected error occurred on a receive..
    ============================
    Call Stack:
    ============================
    at Microsoft.AnalysisServices.Modeler.DataImportWizard.DataSourceBasic.UpdateDataFeedParameters(ConnectionStringBuilder connBuilder, IDataSource dataSource, Boolean checkFeedValid)
    at Microsoft.AnalysisServices.Modeler.DataImportWizard.DataSourceBasic.GetCurrentConnectionString(Boolean checkFeedValid)
    at Microsoft.AnalysisServices.Modeler.DataImportWizard.DataSourceBasic.ClickTestConnection(Object progressControl)
    ============================

    Hi Millard1,
    From your descripton, it seems you want to use SharePoint list as a data souce. If so, you should export the SharePoint as data feed in your SharePoint site, and then create a new PowerPivot table that contains the list. Here are some articles for your reference,
    please see:
    Use Data Feeds (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ee210625.aspx#sharepointlist
    Using a SharePoint list as a data source:
    http://powerpivotgeek.com/2010/10/28/using-a-sharepoint-list-as-a-data-source/
    Regards,
    Bin Long
    TechNet Community Support

  • VBA code to update Excel Data in sharePoint list

    hi Team,
    I have excel sheet created having data. I need to upload it in sharepoint List.
    Please provide me VBA code for the same.

    Please try this.
    Sub UpdateSpecificCells()
    'If nobody has the file checked out
    If Workbooks.CanCheckOut("http://excel-pc:43231/Shared Documents/ExcelList.xlsb") = True Then
    Application.DisplayAlerts = False
    'Open the file on the SharePoint server
    Workbooks.Open Filename:="http://excel-pc:43231/Shared Documents/ExcelList.xlsb", UpdateLinks:=xlUpdateLinksNever
    ActiveSheet.Cells(2, 7).Value = 100
    ActiveSheet.Cells(3, 7).Value = 200
    ActiveSheet.Cells(4, 7).Value = 300
    'Close the workbook
    Workbooks("ExcelList.xlsb").Save
    Workbooks("ExcelList.xlsb").Close
    End If
    End Sub
    I haven't used SharePoint in many years, and I can't test that code now, but I've used that before to update Excel files in SharePoint.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Error when exporting to Excel for SharePoint 2010 List

    We have few users who are getting the following error message when they try to export to Excel from the SharePoint list:
    "An operation that uses the database driver could not be completed. If the driver is a Microsoft driver, make sure the driver file isn’t damaged, and if it is, reinstall the driver by reinstalling Microsoft Query. For other drivers, contact
    your database administrator or driver vendor.‘
    The export option works for me on my machine and also tested it out on other users' machines without issues. The list is currently holds 29763 items.
    1. Created a view that filter the list to show few items, and the user was able to export without issues.
    2. Followed the steps in the following Blog:
    http://www.sharepointserverrecovery.com/blog/troubleshooting-problems-when-exporting-sharepoint-list-data-to-excel-spreadsheet-and-fixing-database-corruption/ and the user was able to export the original list.
    3. My colleagues and I don't have any issues exporting to Excel. (Note: even my test account, that does not have any special permissions or members of any SharePoint group(s)).
    4. Some Blog/Forums suggest to increase Threshold limit in Central Admin, which we don't want to do, since the issue only affect certain users.
    Any idea on how to troubleshoot/resolve the issue?
    Thanks,
    Yassar

    Do they have to export all the information or is a subset of it ok? 
    Creating an index on the columns that your users interact with the most and then creating views that limit the returned results will be useful.  This will then allow an export.

  • Exporting SharePoint List to Excel it adds special / weird characters

    It's probably an escape code but they're not uniform.  When exporting a SharePoint List to Excel there is one column that is a multi-select lookup column and upon export between each item in that column there are a few special characters.  #68 and #70 in particular I see quite a lot of.  What are these escape codes and what would be a good way of filtering them out so they don't end up on the export?

    Hi Bouhatsu and Rob,
    I'm having the same thing with a filtered lookup. When exporting the list to Excel it adds the ID from the other list in front of the value I want (without me asking for it ...).
    Did one of you found a solution to get these ID's out of the export?
    Regards,
    Jeroen

  • Excel cannot connect to the SharePoint list

    Please see below for the event log information
    Log Name:      OAlerts
    Source:        Microsoft Office 14 Alerts
    Date:          22/05/2013 12:18:20 PM
    Event ID:      300
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      PCNAme
    Description:
    Microsoft Excel
    Excel cannot connect to the SharePoint list.
    P1: 101359
    P2: 14.0.6029.1000
    P3: 
    P4: 
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft Office 14 Alerts" />
    <EventID Qualifiers="0">300</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-05-22T10:18:20.000000000Z" />
    <EventRecordID>963</EventRecordID>
    <Channel>OAlerts</Channel>
    <Computer>Z88AE1DAB0658.pioneergroup.pioneerfoods.co.za</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Microsoft Excel
    </Data>
    <Data>Excel cannot connect to the SharePoint list.
    </Data>
    <Data>101359
    </Data>
    <Data>14.0.6029.1000
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    </EventData>
    </Event>
    May your PC's be fast and your restarts few.

    Hi there!,
    Check the following thread:
    http://community.spiceworks.com/topic/334543-excel-cannot-connect-to-the-sharepoint-list
    Our problem ended up being a 3rd party monitoring agent/service we activated on the server.
    Check the OP - I list what I've tried. Perhaps you may find your problem there?
    May your PC's be fast and your restarts few.

  • How to import MS Excel data into an exisiting SharePoint List?

    Hi Guys,
    Is it possible to import an excel list or excel data into a SharePoint List that has already been created? Not create a new list.
    I know you can import a spreadsheet which will create a new list, but I don't want that because I have created columns already  that do calculations and such and I don't want to recreate them....
    It can be either an excel or access list, but I want to make sure the pre-existing columns in still my SharePoint list.

    Sure,
    Go to list datasheet view in IE
    Open excel and copy the range
    Paste in datasheet view
    If column range match and validation overcome, data will start pasting as expected.
    http://3sharp.com/blog/copy-and-paste-from-excel-to-a-sharepoint-list/
    https://clintoncherry.wordpress.com/2008/02/27/bulk-copy-and-paste-into-a-sharepoint-list/
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/3c60ee05-1408-4b73-bb2b-2d42bf913572/how-to-copy-excel-sheet-data-to-sharepoint-2010-list
    Hope this will help
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Data connection from Excel to SharePoint error

    I have a connection to a Sharepoint list from an Excel file. The Excel file and the connection file are both stored in the same location on SharePoint. The connection is set to refresh when the file is opened. We have groups setup in SharePoint the
    define access levels. I am in the same group as another person. The Excel workbook is password protected and set to open as read only unless the user has the password to modify it. Here's the problem.
    When I open the workbook up in read only mode the data refreshes with no problem. When the other person opens the workbook up in read only mode, they get this...
    "An unexpected error has occured. Changes to your data cannot be saved"  

    Hi Hansen, are you and the other user accessing the file using the same computer? Have them log in using your computer and see if they experience the same problem. I have a feeling this is due to a browser or Office issue on the other person's computer.
    cameron rautmann

Maybe you are looking for

  • Can't sign out of my previous Apple ID

    I changed my Apple ID and now with my new phone when I restored a backup the old ID is still in there and I can't sign out of the old ID to log into the new one as the password does not work! I've even tried to change the ID back to the old email on

  • Error in the ABAP Application Program

    Dear All While Incoming invoice posting ( MIRO). When i put amount in Unpl. Del. Csts field system give following  Error Error in the ABAP Application Program The current ABAP program "SAPLMRMK" had to be terminated because it has come across a state

  • Deployment of JWeb in OAS 4.x

    My problem is that whenever i try to envoke my JWeb Cartridge from the Browser I get the message as"This service cannot be processed try after some time" ,The JWeb sample in the OAS is also giving the same message. Operating System WinNT Server 4.0 B

  • BAPI_GOODSMVT_CREATE  (in line item, missing mseg-sgtxt in doc. generated)

    Hi all.... I'm using this bapi to creat material documents (without purchase orders or anything like that).. In line items I fill field item_text, but when mm document is generated, mseg-sgtxt is empty.  Anyway, bapi works fine, but this field is mis

  • HTTP 405 Method Not Allowed - portal30_sso.wwsso_app_admin.ls_login

    I was getting the common "no configuration found" message when I clicked on the login link from the portal homepage. So I ran the ssodatan script and now I get this error message when I try to access portal30_sso.wwsso_app_admin.ls_login: "HTTP Error