+ Reply to Thread
Results 1 to 7 of 7

Macro code for automatic change of a cell value

  1. #1
    Registered User
    Join Date
    12-29-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    34

    Question Macro code for automatic change of a cell value

    Hello.

    I need a macro code to change automatically a cell value.

    More precisely, I would like to put a value (text or number) in a cell, and
    after leaving it, the value in the cell automatically changes into something else.

    Example: I want to have the "morning" text in a cell;
    I will put the letter "m" in it and will press Enter.
    As a result, I would like the word "morning" to appear in the cell.

    Some help please?

    Thanks in advance.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro code for automatic change of a cell value

    Is it just one word?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-29-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Macro code for automatic change of a cell value

    Quote Originally Posted by royUK View Post
    Is it just one word?
    Thank you, RoyUK.

    Certainly not. Is for an entire worksheet. But I would like to apply it in range of my choice.
    Last edited by milt2010; 12-29-2010 at 08:36 AM. Reason: corrections

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro code for automatic change of a cell value

    I'm still not clear what you mean. Is it just "m" = morning?

  5. #5
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Macro code for automatic change of a cell value

    If you need complete words for a list of letters then does this help you?

    rgds

    johnjohns
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-29-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Macro code for automatic change of a cell value

    Quote Originally Posted by royUK View Post
    I'm still not clear what you mean. Is it just "m" = morning?
    I'm sorry. I misunderstud your question. So I would like to imput differents words it can be CODE or TAG and so on. The "Morning" is only an example.

    Is not possible to change it in the macro code if I need?

  7. #7
    Registered User
    Join Date
    12-29-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    34

    Thumbs up Re: Macro code for automatic change of a cell value

    Quote Originally Posted by johnjohns View Post
    If you need complete words for a list of letters then does this help you?

    rgds

    johnjohns
    Thank you very much for your help, Johnjohns.

    I think that now I can to work fine with this.

+ 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