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

cloning form using VBA

Status
Not open for further replies.

SuryaF

Programmer
May 21, 2006
100
DE
Hi everybody,

I have learned the hard way that old forms with a lot of controls can have enough garbage hidden to make it run very slow. Once I have recreated the form from scratch (with the same controls and code), everything worked beautifully.

Now hoping to improve the performance of the entire application, I'd like to do the same for other forms of mine as well.

Ever ran into a code allowing to create an identical clone of an existing form?

Many thanks for any input!
 
Code to that effect has been posted here more than once, I should believe. Somewhere down here thread705-834817, is one suggestion, referring also to thread705-751080.

This should do reports, queries, macros and modules, too, in addition to forms.

This doesn't do any cloning, but save the objects as text, then load them again, replacing the current objects. Do remember to debug | compile and save afterwards, perhaps also a /decompile?

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top