+ Reply to Thread
Results 1 to 3 of 3

Add Special Char to input value

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Add Special Char to input value

    I have a list range like below:
    Starting Ending
    ------------ --------
    000000 099999
    100000 219999
    220000 479999
    480000 629999

    When I input 099998 value in a cell , I want automatically add 1aa in front of 099998 and PAT end of 099998.
    When value 099998 entered , it must be 1aa09998PAT automatically in cell.

    And other values will come as below


    Add Between Add
    ---- ------------ ---------
    1aa 000000 ... 099999 PAT
    1ab 100000 ... 219999 PAT
    1ac 220000 ... 479999 PAT
    1ad 480000 ... 629999 PAT

    How to make in a macro?
    Last edited by turist; 02-17-2013 at 01:49 PM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Add Special Char to input value

    Hi, turist,

    maybe use the Worksheet_Change-Event: right-click on the Sheet Tab, choose View Code, copy/paste the procedure into the code window, event will work on Column A in the Sheet where put:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Add Special Char to input value

    Thanks Holger.
    It's done.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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