Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using VB with shape instances

Status
Not open for further replies.

kdodge

Programmer
Jan 29, 2007
1
US
I'm on a project at work in which I have created my own stencil of about 15 shapes. Within each shape I need to have a textbox to input the number of units, so the user can drag an item from the stencil onto the page and input the number of units needed. This may occur more than once on a given page. After the number is entered, I need to calculate the total of these textboxes. I tried to use the Microsoft Forms 2.0 Textbox control, and I could get VB to calculate the total, however noticed that each instance gave a textbox1, textbox2, etc. name. Because I do not know what the user will drag first, second, third, etc. I am unsure of how to solve this. I came across Data1, Data2, and Data3 fields in the textbox properties so maybe those can be used to categorize the boxes for the VB code? I hope my problem is understood, Can anyone help with a solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top