+ Reply to Thread
Results 1 to 4 of 4

Combo box macro

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Combo box macro

    i am trying to use a combo box to change the properties of a text box. i think i can do this by having it look at the cell link that i sent and then changing the text box appropriately with something like this:

    Please Login or Register  to view this content.
    ...and so on for each possible color

    First of all i was wondering what the code was that i would put into the part where i typed "linked cell" to check the value of a cell (i know, i'm a newb lol).

    Or if there was possibly an easier way to have a combo box change the color of a text box because I think with the way I have you would need to assign the macro to a button and then when they have selected the color they want they would have to hit the button to make it actually change colors. Not that that is too big of a deal but if there is something easier that would be a lot better.
    Last edited by Quamdar; 10-12-2009 at 10:11 AM.

  2. #2
    Registered User
    Join Date
    10-06-2009
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Combo box macro

    It looks like from searching that there is a way to reference a combo box instead of the linked cell but I am not sure what it is.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Combo box macro

    Hello Quamdar,

    The lack of information in your post makes it almost impossible to know what is really happening with your code. You should post your workbook for review. It will then be a faster and simpler task to correct the problem.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    10-06-2009
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Combo box macro

    i ended up figuring it out:

    Please Login or Register  to view this content.
    pretty much what i did was have 4 combo buttons, each one linked to a different cell. then when i pressed a button on the sheet it would check the values of those cells and depending on the value of each cell it would turn a corresponding textbox a certain color.

    the only problem i was having is figuring out the "If Range("B21").Value = 1" part that would check the cells to see what their value was.

    marked as solved, thanks.

+ 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