Create an Object

 

The Visual Basic example below shows the creation of a Milestones Professional schedule.

 

 

Public Sub createanobject()
        Dim objmilestones As Object, strtemp As String

        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
    End Sub

 

 

The result should look something like this (symbols may vary, depending on the user's default template)

 

It's also possible to retrieve an existing Milestones Professional schedule and make changes to it.  See Example 2.

 

Related Topics

  1. Example 1 - Create, print, and save a file
  2. Example 10 - Milestones automation feature demonstration
  3. Example 11 - Build a schedule hierarchy and publish HTML
  4. Example 12 - Symbol notes
  5. Example 13 - A Milestones automation sampler
  6. Example 14 - Outlined schedule with graph
  7. Example 15 - DataGraph and ValueSet sampler
  8. Example 2 - Open and print an existing schedule
  9. Example 3 - Create and save under a new file name
  10. Example 4 - Add rows and symbols using a counter
  11. Example 5 - Freeform text sampler
  12. Example 6 - Build an outlined schedule from an Excel spreadsheet
  13. Example 7 - Use the AddTaskUsingDuration method
  14. Example 8 - Create JPG bitmaps
  15. Example 9 - Microsoft Access graphic file generation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To effectively program with this interface, it's important to learn all about Milestones Professional.  Learn about Milestones.

Milestones Professional 2025 Automation Methods and Properties.  © Copyright 2000-2025, KIDASA Software, Inc. All rights reserved.