Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Aug 2001
    Location
    Cape Town, South Africa, South Africa
    Posts
    399
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Addressing Spin Boxes on the Fly (VBA 2000)

    Hi,

    Can someone please help me. I need to know how to create events for controls that are created on User Forms at Run-Timer. The Controls do not exist at design time. Basically I need to access the events of the controls that I have created at run-time, particularly the events of the Togglebuttons. The code is found in the attached workbook.

    Mario
    Attached Files Attached Files

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Addressing Spin Boxes on the Fly (VBA 2000)

    Check out this <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=vb&Number=98982&page=0&view =collapsed&sb=5&o=0&fpart=>Thread</A>, and see if it can assist. I think a similar approach applies, and probably is best dealt by use of a class module.

    Andrew C

  3. #3
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Addressing Spin Boxes on the Fly (VBA 2000)

    Mario, see MS Excel MVP, John Walkenbach's, page <A target="_blank" HREF=http://j-walk.com/ss/excel/tips/tip76.htm>Creating a UserForm Programmatically</A>. It has the information that you need. HTH --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

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