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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert line object on command...

Status
Not open for further replies.

flaniganmj

Technical User
Jun 25, 2002
81
0
0
US
Is it possible to add a line or rectangle to a form on command? I need to insert a variable number of lines as a user applies parameters.

MF
 
VBA doesn't support dynamic creation of controls but you could have a stock of Lines and Rectangles precreated on the form but all with Visible set to false.

When you needed one you could select the next unused one, set its position and size and make it visible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top