+ Reply to Thread
Results 1 to 3 of 3

substitute

  1. #1
    Bob Phillips
    Guest

    Re: substitute

    With VBA

    For Each cell In Range("B2:G22")
    If cell.Value = "B" Then
    cell.Value = Cells(cell.Row,"A").Value
    End If
    Next cell

    --
    HTH

    Bob Phillips

    "AMK" <[email protected]> wrote in message
    news:[email protected]...
    > How can I substitute each instance of "B" in a range (B4..g22) with the

    value
    > in
    > Column A same row as the Corresponding "B". Not all cell in range have the

    "B"
    >
    > Al




  2. #2
    AMK
    Guest

    substitute

    How can I substitute each instance of "B" in a range (B4..g22) with the value
    in
    Column A same row as the Corresponding "B". Not all cell in range have the "B"

    Al

  3. #3
    Bob Phillips
    Guest

    Re: substitute

    With VBA

    For Each cell In Range("B2:G22")
    If cell.Value = "B" Then
    cell.Value = Cells(cell.Row,"A").Value
    End If
    Next cell

    --
    HTH

    Bob Phillips

    "AMK" <[email protected]> wrote in message
    news:[email protected]...
    > How can I substitute each instance of "B" in a range (B4..g22) with the

    value
    > in
    > Column A same row as the Corresponding "B". Not all cell in range have the

    "B"
    >
    > Al




+ 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