Results 1 to 5 of 5

vba code to replace old values by new value depends upon 2 col values

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    vba code to replace old values by new value depends upon 2 col values

    Dear Experts

    I need vba code to replace the entire col values depends upon 2 col vlaues..

    i have basic code for this condition

    IF CRM_LABOR_ITEM_STATUS (AC:AC) Apart From Closed,Complete,Cancel,Select rest of all option IF Action Owner(AL:AL) is TATA Replace Old Values by "SVC" In Status Column Then Replace Old Values by "CLOSED/Completed in CCI Portal" In Remarks Column


    Find the Attachment & Code basic

    Sub MyVersion()
    Dim lngLastRow    As Long
    Dim rngCell       As Range
    
    Application.ScreenUpdating = False
    
    With Worksheets("OPENCALLS")
        lngLastRow = .Cells(.Rows.Count, "B").End(xlUp).Row
    End With
    
    For Each rngCell In Range("AH1:AH" & lngLastRow) 'PARTNER NAME
      Select Case UCase(Cells(rngCell.Row, "Ac"))
        Case "Complete"
        rngCell.Value = "CLOSED"
                    End Select
      
    Next rngCell
    
    Application.ScreenUpdating = True
    
    End Sub
    Attached Files Attached Files
    Last edited by breadwinner; 03-26-2014 at 04:48 AM. Reason: code

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. replace code/id values with a name found in a list
    By ebbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2015, 10:25 AM
  2. [SOLVED] vba to Replace Old values by new values depends upon cell values in AC:AC col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:15 AM
  3. [SOLVED] vba code to replace old values by new value with 2 type of criteria
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2014, 03:31 AM
  4. [SOLVED] Need vba or formula help to set values depends upon 3 conditions values in 3 col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2014, 12:34 PM
  5. Code to Find and Replace Userform Values
    By ZEvans12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2011, 10:57 AM

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