Results 1 to 6 of 6

Fill the values & replace the old values by vba code depends upon 2 col

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Fill the values & replace the old values by vba code depends upon 2 col

    Dear experts

    I have set of data in multiple range ,need to fill the and replace the old values depends upon two column values (AH & AL)

    IF Active Calls is "TATA" In AH:AH, and IF Action Onwer Col is "Blank",in AL:AL
    Then Fill the Blank cells by Values "SVC" in the col Action Owner,Then Replace Old values by "Updates Awaited" in Status Col(AM:AM)



    find the attachment & basic code take this code for this task

    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 Cells(rngCell.Row, "Ac").Value
            Case Is = "Cancelled"
                rngCell.Value = "CANCEL"
                Cells(rngCell.Row, "AL").Value = "TATA"
                Cells(rngCell.Row, "AM").Value = "CANCEL IN CCI PORTAL"
            Case Is = "Closed"
                rngCell.Value = "CLOSED"
                Cells(rngCell.Row, "AL").Value = "TATA"
                Cells(rngCell.Row, "AM").Value = "CLOSED/COMPLETED IN CCI PORTAL"
            Case Is = "Complete"
                rngCell.Value = "CLOSED"
                Cells(rngCell.Row, "AL").Value = "TATA"
                Cells(rngCell.Row, "AM").Value = "CLOSED/COMPLETED IN CCI PORTAL"
        End Select
      
    Next rngCell
    
    Application.ScreenUpdating = True
    
    End Sub
    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. 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. 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
  3. [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
  4. [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
  5. [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

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