+ Reply to Thread
Results 1 to 5 of 5

Code for updating string values.

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Curitiba, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    6

    Code for updating string values.

    Hello guys,

    I've been having some trouble recently with some vba code.

    I need to do the following:

    In this column (M): docheadertxt,

    All lines described as " BANK RECLASS PROGRAM" and " BCOS RECLAS PROGRAMA" ;

    the corresponding text in the column "O" (Category), must be BA, instead of BS.

    this is the current situation:

    Example:


    DocHeaderTxt HeaderCodes Category
    BCOS RECLAS PROGRAMA PBSR BS
    BCOS RECLAS PROGRAMA PBSR BS
    BCOS RECLAS PROGRAMA PBSR BS
    BCOS RECLAS PROGRAMA PBSR BS
    BANK RECLASS PROGRAM PBSR BS

    I want this:

    DocHeaderTxt HeaderCodes Category
    BCOS RECLAS PROGRAMA PBSR BA
    BCOS RECLAS PROGRAMA PBSR BA
    BCOS RECLAS PROGRAMA PBSR BA
    BCOS RECLAS PROGRAMA PBSR BA
    BANK RECLASS PROGRAM PBSR BA

    I'll attach the file for you guys to take a look.

    Note, I'm a beginner, I have no idea how to do this, although it seems to be pretty simple.
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-20-2012 at 01:53 AM. Reason: Corrected thread title to topic only

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Beginner - Help Needed

    Hi Raze_lux,

    Welcome to the forum.

    suggest you to change the thread title to reflect the query you are asking.. also go through the forum rules:-


    http://www.excelforum.com/forum-rule...rum-rules.html

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Curitiba, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Beginner - Help Needed - Code for updating values.

    Alright! Done.

    Thanks

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Beginner - Help Needed - Code for updating values.

    Hi raze_lux and welcome to the forum,

    Put this formula in R2 and pull it down for all the rows.
    Please Login or Register  to view this content.
    Then copy the entire column R and Paste (Values Only) over Column O.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    08-20-2012
    Location
    Curitiba, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Beginner - Help Needed - Code for updating values.

    Thank you so much! This helped a lot! =D

+ 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