Consulting

Results 1 to 2 of 2

Thread: Modules not accessing userform objects

  1. #1

    Modules not accessing userform objects

    Hello,

    I have created a user form and I have written all the code under Forms->formMenu object. Everything used to work, but the code looks a little messy, when everything is in one file, so I have decided to split all my code in to separate modules.

    Now, the question is, is it possible to control userform objects, like ComboBox or Button, in modules, stored in 'Modules->Main_Module', for example?

    I can show my user form from any procedure in any module, just by calling formMenu.Show, but comboBoxCableTypes.Enabled gives me 'undefined variable' error, when I try to use it in my module.

    I hope you understand what I mean.

  2. #2
    VBAX Expert
    Joined
    Aug 2004
    Posts
    810
    Location
    formname.comboboxname.enable

Posting Permissions

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