Giter Site home page Giter Site logo

ivanbond / power-refresh Goto Github PK

View Code? Open in Web Editor NEW
69.0 13.0 11.0 3.28 MB

Schedule refresh of any Excel file using open-source scheduler & refresher written on VBA

Home Page: https://excel.city/excel-automation/

License: MIT License

Batchfile 0.28% VBScript 4.26% VBA 95.45%
refresher vba excel scheduler excel-based

power-refresh's People

Contributors

ivanbond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

power-refresh's Issues

Terminate reports & force start cell doesn't get removed after pressing "Start Processing".

Hi Ivan,

First of all, a huge thank you for creating such a universal and robust solution. Using this together with BOA automation, and the whole package is a godsend. Having said that, sometimes the value in Force Start and Terminate column doesn't update after pressing "Start Processing". Also, the status doesn't change to "In-Process" either.

From what I have observed, this mostly occurs whenever I try to add more rows to the table. This in return opens multiple instances of the target workbook, as the underlying VBA code continues to run the command every 60 seconds. I am running a 64-bit version of excel.

Add triggers from MS Flow

Think of adding an option to trigger execution of certain tasks/reports from MS Flow.
Sample:
Reports Controller is running on workstation with a gateway installed on it (alternative: onedrive folder, setting in RC: path to folder with triggers)
// folder Triggers in root folder of Power Refresh
RC saves list of tasks into certain path as txt
MS Flow trigger offers dropdown list of tasks, when task is selected, MS Flow creates a "trigger" for RC.
RC scans folder "Triggers" and set "Manual Trigger" flag for corresponding tasks on ControlPanel.

64 Bit Excel

64-Bit Excel has some issues with the Kill Child Prosses VB. this error will either cause Excel to Crash completely or debug out to the code

Add Restart if Terminated option

Idea: two new columns:

  1. "Restart if Terminated" as Yes/No flag to tell controller if it needs to restart certain task after termination (whatever reason) (sometimes it is just enough to restart a task).
  2. Restarts Limit: 1 by default.
    Support column - Current No of Restarts.
    On each scan check if Status is "TERMINATED", if so - check if "Restart if Terminated" set to Y. If so check "Current No of Restarts" vs "Restarts Limit", if less - add a word "restart" to "Manual Trigger", alternatively, send a notification to RC owner - Number of attempts exceeded.
    After successful completion of task - reset "Current No of Restarts" to 0.

Add support for scheduling by weeks and week working days

Current version supports schedule by "each X days", "Month + calendar/working days of month", but no support for "weekly" scenarios.
E.g. "each first working day of week" or "end of each last working day of week".
Or, "each 1st day of week 10, week 20, week 30" - e.g. during certain project.

Add vbs for monitoring

Add VBS that monitors message boxes like "Microsoft Excel stopped working", "The last time you opened ...", "File in Use", "Privacy levels" , "Do you want to send more information about the problem", "Sorry, we couldn't find ..." etc.

PowerQuery File Hang

Hello, first of all, thanks so much for a robust solution to exactly what you outlined in your notes.

I'm having issues getting this to refresh a somewhat heavy PowerQuery file. Starting the scheduler successfully launches the refresher, and from there the refresher successfully opens a new instance of Excel and I can see the file begin to load, however it stops responding shortly thereafter. I have no option but to kill the task.

Typically when opening the file, it does take a bit for the data model to load, however based on your instructions, this shouldn't be an issue. Any and all help is highly appreciated. Thank you.

Pivot Table Filters are being reset after refresh

Hi Ivan,

Congratulations for this great job!

Can you help me on this? I have updated/refreshed my workbook witch as two sheets, sheet1 - get's pivotdata from sheet2 witch as Pivot Tables and it's ok, but in the end when I open the file suddenly all filters from pivot tables are missing.

Best regards

Starter.vbs contains refer to ScriptControl

latest code has into Starter.vbs
Set objScriptEngine = CreateObject("ScriptControl")
objScriptEngine.Language = "JScript"

if I start Startes.vbs receive an error
cannot create object ScriptControl. I see you removed ScriptControl. So, how I have to lauch Starter.vbs?

I use x64 excel

Thank you

Control Number of working Excel sessions

Add new parameter to Reports Controller that should limit number of starting Excel sessions.
Expected behavior:
If Reports Controller has many reports in schedule (e.g. 30) it shouldn't run all of them at once. Multiple Excel sessions can ear all memory and none of reports will be done.
Parameter can be set to 10 (+/- according to resources of reporting workstation), then Reports Controller create 10 sessions (taking into consideration parallel execution parameter), and skip creation of next session. Next loop will check if number of sessions is below 10, then start next scheduled report.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.