Create rectangle on a form with Vba
Is there a vba method to create a rectangle on a form. As a user of the form clicks on items in a list I want to create a rectangle object each time. I thought I was on the right path using the CreateControl method for example:
Set shpBox = CreateControl(Forms!Pop_LoadBundles, acRectangle, acDetail, "", "", Lft, Tp, Lg, Ht)
HOWEVER, I am mistaken as such a method would be used on a rectangle control, yet I just want to create a standard shape of a rectangle and place it on my form.
Any help is always greatly appreciated.
Thanks, Coby.
|