+ Reply to Thread
Results 1 to 3 of 3

refer to same cell in other worksheet

Hybrid View

  1. #1
    JW Rutgers
    Guest

    refer to same cell in other worksheet

    I am analyzing various ranges in a worksheet. If a cell in the range is
    empty, I want this cell to have the value of the same cell reference in
    another worksheet.
    Up to now I picked the value by using a relative reference within the
    worksheet, but I now have to pick the value from the same cell reference in
    another worksheet

    For Each rnCell In rnArea
    If rnCell.Value = "" Then
    rnCell.Formula = rnCell6.offset(23, 0).FormulaR1C1
    End If
    Next

    Is there a solution?



  2. #2
    Ardus Petus
    Guest

    Re: refer to same cell in other worksheet

    rnCell.Formula = Worksheets("Sheet2").Range(rnCell.Address).Formula

    HTH
    --
    AP

    "JW Rutgers" <j.rutgers@chello.nl> a écrit dans le message de
    news:d624f$4428fc8a$d55dddf0$28589@news.chello.nl...
    > I am analyzing various ranges in a worksheet. If a cell in the range is
    > empty, I want this cell to have the value of the same cell reference in
    > another worksheet.
    > Up to now I picked the value by using a relative reference within the
    > worksheet, but I now have to pick the value from the same cell reference

    in
    > another worksheet
    >
    > For Each rnCell In rnArea
    > If rnCell.Value = "" Then
    > rnCell.Formula = rnCell6.offset(23, 0).FormulaR1C1
    > End If
    > Next
    >
    > Is there a solution?
    >
    >




  3. #3
    JW Rutgers
    Guest

    Re: refer to same cell in other worksheet

    Thanks! It works great


    "Ardus Petus" <ardus.petus@laposte.net> schreef in bericht
    news:%234o9AfkUGHA.1204@TK2MSFTNGP12.phx.gbl...
    > rnCell.Formula = Worksheets("Sheet2").Range(rnCell.Address).Formula
    >
    > HTH
    > --
    > AP
    >
    > "JW Rutgers" <j.rutgers@chello.nl> a écrit dans le message de
    > news:d624f$4428fc8a$d55dddf0$28589@news.chello.nl...
    > > I am analyzing various ranges in a worksheet. If a cell in the range is
    > > empty, I want this cell to have the value of the same cell reference in
    > > another worksheet.
    > > Up to now I picked the value by using a relative reference within the
    > > worksheet, but I now have to pick the value from the same cell reference

    > in
    > > another worksheet
    > >
    > > For Each rnCell In rnArea
    > > If rnCell.Value = "" Then
    > > rnCell.Formula = rnCell6.offset(23, 0).FormulaR1C1
    > > End If
    > > Next
    > >
    > > Is there a solution?
    > >
    > >

    >
    >




+ 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