Consulting

Results 1 to 4 of 4

Thread: Solved: macro to clear content and move data one column to the right

  1. #1
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location

    Solved: macro to clear content and move data one column to the right

    See attached workbook.
    Hi Experts

    Ok i have no idea on this question.

    Need a macro that will delete/remove any N/A that appear in column in column D (see worksheet "Latam Santander") after the word Milestone. Boarders not to be chnaged or affect.

    And also copy across from column J to column K (same worksheet) any text/information that appears in column J over to K. With out the red back ground colour, just plain text white transparent background.

  2. #2
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Ok here is my clear contents macro

    For Each Cel In Range("D")
    If Cel.Value = "N/A" Then
    Cel.Value = ""
    End If
    Next Cel

    how would i do the movement from column j to k....and combine the results

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Dim Cel As Range
    For Each Cel In Range(Range("D15"), Range("D" & Rows.Count).End(xlUp))
    If Cel.Value = "N/A" Then
    Cel.Value = ""
    Cel.Offset(0, 7).Value = Cel.Offset(0, 6).Value
    Cel.Offset(0, 6).Value = ""
    End If
    Next Cel
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    xld

    thanks once again sir....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •