I'm trying to create a form dynamically in Project 2007 using VBA
I need to add a label with the task name:
This should be correct, but I dont' see the new label:
Set label = Me.Controls.Add("Forms.Label.1", "lbl" & t, True)
label.Height = h
label.Left = l
label.Top = t
label.Width = w
label.Enabled = True
label.ForeColor = red
label.Caption = task.Name
What could i be doing wrong? There are no errors/exceptions here.