Results 1 to 14 of 14

Help needed with VBA code to replace values with names and delete others Values

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help needed with VBA code to replace values with names and delete others Values

    Dear All

    I really need help with this long winded process and am hoping someone can give me a code to be able to do what I need automatically.

    I have attached a very simple workbook to explain what I need to do.
    In column A I have cells that have RXXXX [Role] I need to replace that with the name above that cell which is in the format of AAA,BBB (1000).

    Basically everytime I hit a cell in column A which is Rxxxx where xxxx is a number then replace it by the name above it which is in the format of AAA,BBBBB (xxxx) where xxxx is number. Then I need to copy hat name for all the blank cells below it if there is data for them in the corresponding Col B.

    For example in the workbook enclosed I need to replace R14317 Sales Manager with Aaa,BBB (1000) and R14217 Sales Manager to be replace by CCC,DDD (1001) and then copy CCC,DDD (1001) all the way down from A11 to A17 and then R14317 to be replace by EEE,FFF (1002) and so on.
    If possible I then need to delete cells in Col A that begin with BU_zzz (where zzz is a text such as access or fashion etc.), i.e. in Col A I want to delete A1 to A4 and then start the process o copying the criteria above.

    This might be confusing but please let me know if I need to give further explanation. My actual work book has over 100 entries in the same format and currently its taking me over two hours to do this manually.

    Any help is much appreciate it.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vba code to replace old values by new value depends upon 2 col values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2014, 03:22 AM
  2. [SOLVED] Fill the values & replace the old values by vba code depends upon 2 col
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2014, 03:11 AM
  3. Macro needed to delete rows based on values
    By bensun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2010, 06:23 AM
  4. replace axis numeric values with names
    By sourberry in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-22-2010, 04:13 AM
  5. VBA to delete Formulas, Names, & Macros of another workbook, but to keep values
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-16-2009, 03:03 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