Sharepoint Lists to Word / Excel file - sharepoint

Is their anything in sharepoint to easily achieve this?
Say you have a list of 40 items, you can click a button to export all 40 items right to a word file or text file or something. Instead of having to open each item and click print.
I can do something custom wise, im just curious if there is a simple solution already implemented.

If you have Office 2007 installed and you visit a SharePoint list, you can just use the Actions > Export to Excel option (or Export to Spreadsheet). This generates a SharePoint Excel Query File that Excel can open up and pull the list.
Most Office apps, especially Excel, will talk to SharePoint lists in some form or another.

You should be able to do this already, provided you have MSOffice.
When viewing the list, hit the "actions" button at top and you should have "Export to Spreadsheet" available, this will drop the full list right into excel.

Related

Is there a way to scrape data from a Microsoft Form survey?

I am trying to automate my survey analysis pipeline and would like to link the data from a Microsoft Form to an Excel sheet.
This is what the page looks like with results collected:
But you have to click the open in excel to get the table of results. I was wondering if it would be possible to automate this so that it updates to capture all responses like once a day into an Excel sheet...this is what the output looks like when you click the button.
Any tools or tips would be great! I have some experience with R and Python so could implement that too...
Forms is already linked to an excel file, the "Open in Excel" button is a link to the excel file, which is saved either in files on your teams channel or in sharepoint.
The data is in a table automatically, and on sharepoint you can link between tables in different spreadsheets using the Data -> Get Data menu in excel.

How to programmatically create a list from an excel spreadsheet in SharePoint 2010?

I want to create a list from an excel spreadsheet in SharePoint 2010. When a new Excel document is uploaded to a SharePoint library, a corresponding list will be created automatically. Is this possible?
You can do this in two phases:
Create an empty MS Access database and import your excel sheet into it (in MS access go to External data -> Excel, choose your file and follow the steps to import it.
When you get the MS access table with the data from excel sheet, right click the table name in Tables section and go to Export -> SharePoint list. There you can specify the url of your SharePoint site and the name of the new list. Click Ok and wait until the list is created and the data is uploaded to SharePoint.
EDIT:
Since this needs to be done automatically (as stated in comments), this is the high overview of the things that needs to be done, with some useful links:
Create Event receiver for the library that the excel files will be uploaded to.
In the ItemAdded Method write the code that will do the following:
Get the uploaded file
Parse the excel file using the OpenXml library
Create the list in the SharePoint site, based on the columns taken from the excel file
Loop through all the rows in the excel file and insert the list item for each excel row.

Synchronize Sharepoint List with multiple Excel files

I have a list on Sharepoint,and I would like to update that list from any excel sheet/file I create "Having same formatting of course". Can I achieve that? I know that you can create a List on sharepoint from an excel sheet "Table Format" but I couldn't find any solution to sync sharepoint list from any excel sheet. Shall I do some scripting to achieve that ? I'm using Excel 2010 and Sharepoint 2010
Do you need to actually do any further interactions with the SharePoint list?
If not, a solution could be to just display the excel sheeet as a Range within a page. https://msdn.microsoft.com/en-us/library/office/ee556820.aspx
Don't think you get my point. Suggesting that you do not use a list at all. Just display the excel sheet directly.
If you do need to update a list from excel, you must use scripting of some kind. Question is if you can call the script from within excel, or it must happen when uploading the excel sheet.
Perhaps if you tell the complete scenario, it is easier to help.
Since I need further interaction with the list, I have decided to go with Access, which provides an out of the box solution. Simply create a blank database and link it with the desired list on SharePoint and that would be it.

how to import data from sharepoint to excel using macro

I wanted to know if there's a way to import data from SharePoint to Excel using Macros. What i want to do is have a library in my sharepoint in which i have an excel document. When i download the document and open it, i would like to automatically import the data from sharepoint and have some graphs.
What i've tried to do is export the data of a list using the SharePoint ribbon. Then i opened the file.dll.iqy in notepad, hoping to find the macros to import datas. What i've found was this :
WEB
1
http://win-sharepoint:9090/sites/PPMO/_vti_bin/owssvr.dll?XMLDATA=1&List={C51D70F2-4D7B-4F20-AE05-379DA264F685}&View={8399F350-92C7-4942- B8B0-464A735AFC72}&RowLimit=0&RootFolder=%2fsites%2fPPMO%2fLists%2fStade%20du%20projet
Selection={C51D70F2-4D7B-4F20-AE05-379DA264F685}-{8399F350-92C7-4942-B8B0-464A735AFC72}
EditWebPage=
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
SharePointApplication=http://win-sharepoint:9090/sites/PPMO/_vti_bin
SharePointListView={8399F350-92C7-4942-B8B0-464A735AFC72}
SharePointListName={C51D70F2-4D7B-4F20-AE05-379DA264F685}
RootFolder=/sites/PPMO/Lists/Stade du projet
I tried to save it as a macro, but the result i got was not the one expected.
Do you have any idea how to do this ?
Thanks a lot
In Excel 2010, you can go to Data / Get External Data / From Web
Then you can browse to your SharePoint List and select your table using the helpful arrow icons.
Similarly, you can open the iqy file with Excel (enabling security on the prompt) then save the new worksheet. You can see the iqy file details under Data / Connections.

Is is possible to populate a SharePoint list from an Excel sheet?

So you can export a list to a spread sheet, but can you do the opposite? Preferably from an Excel sheet.
Go the the Create menu in sharepoint and upder Custom Lists, click Import Spreadsheet. Type the name of the list, browse to the spreadsheet and click Import.
You can also sync your spreadsheet and list on a continual basis by making a list on your spreadsheet and then publishing that to sharepoint.
Open your sheet
Select your data
Click Crtl+l
Click ok
Right click list
Publish list
type name of sharepoint site
name of sharepoint list
click Finish
Yes, you can do it from Excel 2003 :( bit is bit limiting. There is a workaround to do the same from Excel 2007...
But, to achieve best results you should use Access 2007 because it provides you with everything you need. It allows you to do the same you can as from the web interface.

Resources