+ Reply to Thread
Results 1 to 3 of 3

Format all controls/objects within frame

  1. #1
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Format all controls/objects within frame

    Greetings,

    I have a userform with several frames. Frame1 has several optionbuttons. The other frames contain either a textbox or combobox or both. By default all frames except Frame1 are disabled. Any frame will be enabled based on the optionbutton selection in Frame1. Once enabled, I would like to know if it is possible to change the backcolor of all controls within the frame. I believe frame is a type of container control but i don't know how to use this attribute while writing a code.

    As always, grateful for any assistance.
    Asha

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Format all controls/objects within frame

    The Frame has a controls property:
    Please Login or Register  to view this content.
    for example.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Format all controls/objects within frame

    Thank you romperstomper for providing an example based on which I put together the following code.

    Can you please check if the code can be made more efficient?

    Please Login or Register  to view this content.
    Many thanks
    Asha
    Last edited by asha3010; 07-06-2010 at 12:57 PM.

+ Reply to Thread

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