Automating Logicim XLGL tasks on a schedule
You can use the Windows scheduler to automate tasks in Logicim XLGL. For example, you may want to update a report once a day and email it or save a copy to a specific folder.
Follow these steps to automate your task:
- Create (or record) a macro that will automate everything that your task requires. Reference the article on using Logicim XLGL in a VBA macro for specific ways to use XLGL in a macro. Here's an example of a macro that Connects XLGL, Refreshes the report, then closes Excel:
Sub AutomateTest() Application.Run "XConnect2", "CONNECTION_NAME", "USERNAME”, "PASSWORD" Application.Run "XLGL.Refresh" Application.Quit End Sub
- Replace CONNECTION_NAME, USERNAME, and PASSWORD with your specific connection information.
- Create a new task in the Windows task scheduler and set the Action to start a program
- The executable for the Task is C:Program files (x86)LogicimXLGLAutomateXLGL.exe
- The arguments are the full path, the workbook, and the macro name. For example: “C:TestMyTest.xlsm” AutomateTest
You should test your automation before changing any other settings. In particular, the automation task must run in a regular user account (user logged in and without maximum privilege).
Creating macros for automation is an advanced feature of Excel. Contact us if you would like some help with your macro creation.
Edited: Wednesday, December 04, 2024
Was this article helpful?
Thank you! Your feedback matters.
Related articles
No related articles found
You can Contact us so we can address your question.