+ Reply to Thread
Results 1 to 3 of 3

find function and relative reference

  1. #1
    Registered User
    Join Date
    05-26-2008
    Posts
    3

    find function and relative reference

    Hi

    I'm trying to do a macro, to select data in A1, find that value in another sheet, and use relative reference to copy relevant data to paste back in row A in original sheet, and then move onto A2 etc. I know how to write someting that will move down A until the data runs out, but I'm struggling on the contents of A1 remaining in the code - see below, 10125.

    I need the code to select the contents of whatever the active cell is, not this fixed value.

    Please Login or Register  to view this content.
    Any ideas?

  2. #2
    Registered User
    Join Date
    05-26-2008
    Posts
    3

    Clarification

    Thought I'd clarify what I'm actually doing.

    This is a report that is produced for the printer, and so the format is very unfriendly for data extraction. The doc is opened in Excel with dividers placed at relevant points, in "copy P150 here"

    My idea was to take column A, copy to another sheet, sort, find the first non-numerical character and delete all those. Then, return to A1, copy the value there, and using relative reference, copy and paste the relevant data.

    Then group by RFM and paste the transactions into the applicable RFM.

    However, I'm stuck on the find function, as it is embedding the first value into the code, instead of whatever that active cell happens to be.

    Thanks
    Attached Files Attached Files

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by griffobiffo
    Hi

    I'm trying to do a macro, to select data in A1, find that value in another sheet, and use relative reference to copy relevant data to paste back in row A in original sheet, and then move onto A2 etc. I know how to write someting that will move down A until the data runs out, but I'm struggling on the contents of A1 remaining in the code - see below, 10125.

    I need the code to select the contents of whatever the active cell is, not this fixed value.

    Please Login or Register  to view this content.
    Any ideas?
    here is an example of looping through a string in A1:A50, this example loops through a cell and changes numeric to ""
    Please Login or Register  to view this content.

+ 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