Results 1 to 5 of 5

Populating a UserForm

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Populating a UserForm

    Dear Forum Members,
    I need to be able to populate the controls in a userform from the values of the controls of a second userform.
    I have used code like
    Sub SwapForms(MyForm as UserForm)
    UserForm1.tbOne.Value=MyForm.tbOne.Value
    UserForm1.tbTwo.Value=MyForm.tbTwo.Value
    UserForm1.cbOrder.value=MyForm.cbOrder.Value
    etc etc
    The problem is that there are 16 textboxes and other controls on the forms and I am sure that there is a more elegant way of coding this .
    Can anyone give me a suggestion please?
    John
    Last edited by j_Southern; 03-18-2011 at 11:42 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1