+ Reply to Thread
Results 1 to 2 of 2

Cell linking: Destination cell must perform a search for data

Hybrid View

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Cell linking: Destination cell must perform a search for data

    Hello there,

    I have a macro which copies and pastes data from cells in one sheet to another.

    However, I need one of the destination cells to perform a kind of "search" function in order to remain updated (the data origin cell will not always be the same).

    The target cell must be able to find and select the data from the original sheet.
    Like this:
    Range("*Original Worksheet*!C1").Select
        Selection.End(xlDown).Select
        ActiveCell.Offset(0, 3).Range("A1").Select
    Can anyone help with this?

    I will try and provide as much extra information as I can upon request.
    Thanks
    Last edited by r2fro; 01-08-2014 at 10:38 AM.

  2. #2
    Registered User
    Join Date
    10-16-2012
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Cell linking: Destination cell must perform a search for data

    UPDATE:

    I have created a formula which performs the same function of the "search" macro above which can be easily pasted into the destination cell using:

    ActiveCell.Formula = "=INDIRECT( ADDRESS( MATCH( 9.99E+306,F:F, 1),6, 4) )"
    But my question now is:

    How do I make the values F:F correspond to the active worksheet?
    The same macro will be used for hundreds of worksheets so I somehow need the active worksheet name to be inserted to the formula.

    Any help would be hugely appreciated .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Use a button to transfer filtered data to destination cell
    By Consty1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2013, 09:46 AM
  2. Use VBA to copy Data Validation reference cell font color to destination cell?
    By proav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2012, 08:09 PM
  3. Replies: 0
    Last Post: 07-09-2010, 05:08 AM
  4. Using destination filepaths listed in cell contents opposing to coding destination
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 01:23 PM
  5. [SOLVED] Replaceing destination cell contents with new data in Excell
    By Duane L Kibby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2005, 02:06 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