The Visual Basic example below shows the creation of a Milestones Professional schedule.
|
Public Sub createanobject() objmilestones = CreateObject("Milestones") With objMilestones .Activate For nCounter = 1 To 7 strTemp = "This is Task Row " + CStr(nCounter) .PutCell(nCounter, 1, strTemp) strTemp = CStr(nCounter + 1) + "/1/2024" .AddSymbol(nCounter, strTemp, nCounter) Next nCounter .SetStartAndEndDates("01/01/2024","12/31/2024") .setlinesperpage("7") .Refresh
.Close End With
|
The result should look something like this (symbols may vary, depending on the user's default template)

Related Topics
To effectively program with this interface, it's important to learn all about Milestones Professional. Learn about Milestones.
Milestones Professional 2023 Automation Methods and Properties. © Copyright 2000-2023, KIDASA Software, Inc. All rights reserved.