+ Reply to Thread
Results 1 to 10 of 10

Active Cell Formatting

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Active Cell Formatting

    Guys, I have the following problem:

    I want the user to be able to input values between 1-5 (for example) in certain cells, and based on the number chosen, the same active cell to return different text. I don't want to use dropdown menu or any Macros. Is there any way to do that with conditional formatting?

    Thanks,

    D.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Active Cell Formatting

    How about specific examples of what you wish. ie. Enter 1 in A1 and X appears in B1. Help us to help you by giving us enough information to offer a solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Active Cell Formatting

    Hey - thanks for the reply. The whole action is taking place in one cell - A1. I want the entries to change as below:

    user inputs 1 - cell shows "Hello"
    user inputs 2 - cell shows "New York"
    user inputs 3 - cell shows "Bye"

    You think it is possible?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Active Cell Formatting

    You can't change the value of a cell with conditional formatting, or formulae.

    If you want to change the value in cell based on the user input in the cell you would need to use VBA.

    For example, with this code in a worksheet module entering 1, 2 or 3 in the range A1:A10 would convert the input to the corresponding terms you mention.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Active Cell Formatting

    Thanks. Code stopped working, though? Numbers don't change anymore - any idea why this might have happened?

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Active Cell Formatting

    How did you implement the code?

  7. #7
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Active Cell Formatting

    yeah, it was working up to one point, then it stopped?

  8. #8
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Active Cell Formatting

    Code breaks when you clear the contents of the cells. After that, it doesn't work anymore.

  9. #9
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Active Cell Formatting

    And the reason for that is when you select multiple cells, the code cannot calculate the "target" value.... any ideas?

  10. #10
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Active Cell Formatting

    Can anyone please help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 12-23-2012, 09:26 AM
  2. Auto highlight row and column of active cell without changing formatting
    By GRamirez in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2012, 11:35 AM
  3. [SOLVED] VBA - Can I select a new active cell based on the value of the current active cell?
    By GrumpyOldBastard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2012, 07:05 PM
  4. How to set active cell + date formatting
    By PepperCrab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2011, 03:15 AM
  5. Change Formatting In 'Active' Cell
    By JB2010 in forum Excel General
    Replies: 4
    Last Post: 02-02-2006, 02:10 PM

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