+ Reply to Thread
Results 1 to 4 of 4

Changing a textbox style depending on the value of a cell

  1. #1
    Forum Contributor
    Join Date
    02-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    275

    Changing a textbox style depending on the value of a cell

    How do I Change the value and style of a text box depending on the value of a cell in the workbook. This box is only for display and does not return any values past this form.

    Thanks

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing a textbox style depending on the value of a cell

    at the time that you populate the textbox, check the value of the cell and apply the format you want. not really sure what else to say without any more detail.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    02-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    275

    Re: Changing a textbox style depending on the value of a cell

    Here is the file.

    The value of the cell is not a fixed cell but the last entry of that number from a list and a second entry in column 21 from the same row.

    In this application ALL references to rows or columns are populated on command and can move around on the sheet.

    The box I want to apply the changes too is TextBox7 on the only user form.
    It must find the number and if there is no return date the it must say Out,date and to whom.
    else if there is a return date it must say the last time it was out and to whom.

    For some reason the file is too big to upload 2.9 mb and I can not get it smaller.

  4. #4
    Forum Contributor
    Join Date
    02-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    275

    Re: Changing a textbox style depending on the value of a cell

    Thanks Joseph

    I think I sorted it

    I used an for loop to find the first instance of that number but I did not exit the loop soon enough.

    Thanks for trying

+ 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