Milestones Professional videos › Working with MS Excel

Automation with Microsoft Excel – Milestones Professional Video

This video covers an example of Automation using Milestones Professional.

In this video

An Excel macro can build a Milestones Professional schedule from the rows of a spreadsheet. This video runs the first Excel VBA example, then changes the template and the code so it brings in more tasks.

Getting the example

Automation Help is linked from the support page on kidasa.com. The video downloads Excel VBA Example 1, which holds the schedule template (.mtp) and the Excel file with the code. Extract both into the Documents folder, the default folder for personal templates, so the macro finds the template. On Windows 11, right-click the Excel file, open Properties and click Unblock, or the code won't run. Then open the file in Excel and click Enable Content.

Reading and running the code

Turn on the Developer tab (File, Options, Customize Ribbon), then click Macros and Edit. The macro opens the template by name, steps through tasks 1 to 17 adding a symbol for each, and tracks the earliest and latest dates to set the schedule's date range. Running it opens Milestones and builds an outline schedule.

Automation help in Milestones

Automation Help, at the bottom left of the Help tab, has example applications and a list of every method with its arguments. The Folders button on the Tools tab shows which folder holds personal templates, which is where the template file has to be.

Changing the template and the code

The spreadsheet has 21 tasks, so the first run stops at task 6.2. The video turns on a summary bar (Layout tab, Summary Bar Settings, using a bar from the Toolbox), sets 21 rows, and saves over the original as a personal template. Changing the loop in the code from 17 to 21 and running it again brings in every task, with summary bars.

All videos