Тёмный

Script for Auto-Update of Excel Chart in SharePoint 

kalmstrom.com
Подписаться 27 тыс.
Просмотров 42 тыс.
50% 1

Create a scheduled task that runs a script which refreshes an Excel chart based on SharePoint list data, so that all changes in the list are reflected in the chart: kalmstrom.com/T...

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@gavingnr
@gavingnr 2 года назад
I have an excel sheet with data connected to a database. I have saved it on the SharePoint. I am using the script you shared to update the file. It's not working. Can you please help.
2 года назад
I would be delighted to help you. Please see the description page of my services: www.kalmstrom.com/Services/default.htm
@scotthall8723
@scotthall8723 4 года назад
I love the script idea. My challenge (I think) is due to our company policy I can't get Excel out of read only mode. So I can see that the spreadsheet is pulling up, because I made it visible in the script, and it looks like it's doing the refresh all and I see the saving message but I noticed the spreadsheet never gets out of that read only mode. It only updates when I manually open and then click the button to edit. I've tried all kinds of tricks such as trying to change settings for SharePoint collaboration on the file, taking off read only on the file and library folder itself (which then seems to get set back to read only or won't allow me!) changing trust permissions on the file itself (Excel 2016 btw) with those settings under File -> Options -> Trust Center (both Protected View and Trusted Locations) and it seems like I get foiled every time! :-) So it feels like in short I'm hemmed in by our Corporate policies. :-) I did see the Pivot Explorer solution. Did you develop that? Anyway, hoping we can get that but in the mean time! ….
4 года назад
Sorry it didn't work out for you. It does sound like a company policy issue. Yes, I did develop the Pivot Explorer solution. You should also look at Power BI, that might be an option for you.
@Roots98
@Roots98 5 лет назад
I get an error from using your updated script that comes up when I run the script, and it says "Unknown runtime error: 'xl.DisplayAlerts' and the error code is 800AC472" I cannot seem to find a meaning or cause to this error but it could possibly be due to it opening the excel file in read-only mode by default? Anyone else have a solution? Thanks
@hereskieu1
@hereskieu1 5 лет назад
I have the same error using his script!
@BresleveloperDigital
@BresleveloperDigital 5 лет назад
at least to skip the update promt, 1. On the Data tab, in the Connections group, click Edit Links 2. Click Startup Prompt. 3. Select the option that you want. support.office.com/en-us/article/control-when-external-references-links-are-updated-21e995b5-bab1-4328-8ab3-dd357fe0e653 now its only the "cant connect to server"
@Run4itForever
@Run4itForever 3 года назад
I am trying to get an Excel file that lives in SharePoint online to do this. It works fine until I configure the Task Manager settings to run when not logged in. I'd like this process to run even when I'm on vacation and wouldn't be logged in. Ideas?
@widuralatest
@widuralatest 5 лет назад
Hi! Thanks for the Script. I have SharePoint Online and I have tried the same method but it's not updating the document in the SharePoint document library. I can see the task running in the task history and even i can see Excel opening, running and closing in the background processes in task manager. But it does not update the Excel file in the document library. I have tried a local folder to update the same Excel file and it worked perfectly. Any tips to get this working in SharePoint Online?
@widuralatest
@widuralatest 5 лет назад
I have removed the "xl.DisplayAlerts = False" portion of the code and got an error. In line number 5, I have "wb.Save" and the error refers to that. This means reading the document works but saving doesn't . Help please!!
@drockqx
@drockqx 5 лет назад
Try this: Add this line after the set wb line wb.LockServerFile
@widuralatest
@widuralatest 4 года назад
@@LifewithHappy Yes i did it on SharePoint online. You can use the script on an PC/Server having internet connectivity and use the scheduler to run it at a timely interval. Make sure that the account you are running the power shell script is having sufficient access to the document library. Also if you have multi factor authentication, make sure the app password is enabled in O365.
@widuralatest
@widuralatest 4 года назад
@@LifewithHappy you can have the script in any computer connected to internet. However, make sure the computer is up and running always otherwise the scheduler may not run if the computer is turned off.
@LifewithHappy
@LifewithHappy 4 года назад
Widura Weerasinghe thank you!
@marieraymond6512
@marieraymond6512 2 года назад
I don't see where to obtain the "password"
@oscillian
@oscillian 8 лет назад
Talk about jumping through hoops! I wish Microsoft would make this easier since it kind of negates the idea of collaboration via SharePoint. Any idea if this works with Excel 2010 desktop client (license key:ed) in combination with 365? I have an old copy that wouldn't need the monthly log-on.
@kalmstrom
@kalmstrom 8 лет назад
+oscillian Yes, you are right of course and I agree! Yes, this script would work with Excel 2010 also - good idea.
@oscillian
@oscillian 8 лет назад
I get the "Do you wish to overwrite file?"-dialogue every minute, lol! Any workaround?
@kalmstrom
@kalmstrom 8 лет назад
+oscillian We have updated the script in the article to get rid of that problem. kalmstrom.com/Tips/SharePoint-Online-Course/HelpDesk-Update-Excel-Chart-Script.htm
@oscillian
@oscillian 8 лет назад
+kalmstrom.com Perfect! I was going down the same road with OverwritePrompt, but this does the trick! Tack! :-)
@kalmstrom
@kalmstrom 8 лет назад
+oscillian Varsågod! We are glad you pointed this out and gave us a chance to improve the script :-)
@TheSTEfit
@TheSTEfit 6 лет назад
This doesn't work for me. Keeps saving the document in My documents! Not the SharePoint address:(
@dominiknagy3263
@dominiknagy3263 4 года назад
Hi! I get the "How do you want to open this file?" -dialogue (every minute). Could you please support?
@rashford329
@rashford329 4 года назад
Hi - Did you ever find a solution for this? I have the same issue
@chasecameron5348
@chasecameron5348 5 лет назад
Any chance that the script could be embedded in the page? The task scheduler is tied to the computer in which it is scheduled. If I could get the script to be ran on the page every time it was open then it would run the script.
@kalmstrom
@kalmstrom 5 лет назад
No, regretfully not. There are lots of ways to do this - but not without real scripting.
@davidbentley1307
@davidbentley1307 7 лет назад
Hi, The file is opening by default in protected mode, so there is no update. Any idea how to work around this? Thanks
@kalmstrom
@kalmstrom 7 лет назад
Set Excel to trust the path to your SharePoint location.
@drockqx
@drockqx 5 лет назад
Add this line after the set wb line wb.LockServerFile
@kgymef
@kgymef 7 лет назад
Hi, thank you for sharing this. Any idea why my file is not saving in my sharepoint location?
@kalmstrom
@kalmstrom 7 лет назад
No, but we do offer paid support to troubleshoot it for you if you want.
@zachwelding4996
@zachwelding4996 7 лет назад
Mine is doing the same thing, saving in the same location as the VBS Script
@willogrady1241
@willogrady1241 6 лет назад
Yes. I seem to have the same issue with this solution
@KirankumarGongani
@KirankumarGongani 6 лет назад
+Fernando Marte : Map a Network Drive and give the excel location. Now open excel and update the default save location to the new mapped Network drive. It will work.
@KirankumarGongani
@KirankumarGongani 6 лет назад
: Map a Network Drive and give the excel location. Now open excel and update the default saving location to the new mapped Network drive. It will work.
Далее
pumpkins #shorts
00:39
Просмотров 30 млн
How to show SharePoint list data in a pivot table
6:58
Synchronise SharePoint with Excel
7:31
Просмотров 118 тыс.
2 Ways of Importing an Excel Staff List to SharePoint
11:42
EASILY Make an Automated Data Entry Form in Excel
14:52
Add Live Graph To SharePoint
5:36
Просмотров 153 тыс.