+ Reply to Thread
Results 1 to 10 of 10

select range to copy, find values and copy

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    select range to copy, find values and copy

    Hi guys,

    Hope you can help on this one,


    I have a base document that i can import another data document with a button (this is working).

    I then have another WS ("search") in the base document with lots of identifiers which I want to use as my search range to look through the document that I just imported (column A).

    I need a msg to ask the user what month they would like to find the $ value on (Ie, January) in the imported WS... this way it doesnt copy the entire line only cell in the selected month column.

    Then I want to the user to be able to click a button that will check through the identifiers on the "search" WS and if the same identifier appears in the imported WS in column A, then for the $ value in the column selected to be copied to the search Range work sheet.


    If the idenfifier is not matched then in place of the $ value copied can be the string "no in XXX WS" .

    I have attached the document with dummy data in each work sheet with details more cleary what I have meantion above.

    Thanks in advance everyone
    Attached Files Attached Files
    Last edited by SarahPintal; 02-04-2010 at 07:45 PM.

  2. #2
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Unhappy Re: select range to copy, find values and copy

    Hi guys im still plugging away...

    Ive added some code for the user to select the range that needs to be coppied though not sure who to then use that range and to do the search part. File attached.

    Any help would be so greatly appreciated...

    thanks,
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: select range to copy, find values and copy

    okay,

    Mod to the code... have added global select buttons(see 'Intergral Dump' WS) to the top fo the month columns so the range of the column can be used to get the value.

    Can I please have some assistance with the searching and copying the coresponding $ value etc,

    thanks, ive exhausted my knowledge i think

    new doc attached.


    sp
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: select range to copy, find values and copy

    Hi

    Try this. It all hangs from the one button that selects the month.

    rylo
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: select range to copy, find values and copy

    Hi rylo,

    wow, that is impressive. worked as expected.

    Is there a way to ask the user for the location to copy the results to? Ie. user can click on another worksheet and click the first cell they want the findings to start from.

    Ie: if the user navigates and selects: worksheet "master" , Column M, row 4 for the results to be copied from M4 down instead of the static offset atm?

    Because on another worksheet (lets say 'Master') there is the WBS number and about 20 rows to the right (sometimes 15 rows, sometimes 3, sometimes 25) is where ideally the results can be coppied too.

    Thanks, i hope this isnt too much of a pain.

    oh, I did come up with my own solution, end to end though as soon as I saw the userform my eyes lit up, hence the extra ask! thanks again

    Other than the above, its great, really is.

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: select range to copy, find values and copy

    Hi

    How about this one.

    rylo
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: select range to copy, find values and copy

    Hi rylo,

    apologies for the confusion I was actualy trying to say that i wanted the user to be able to select where\he copies the results to.

    with that said, what you actualy did is something i didnt think of though it will allow for the document to be much more dynamic, which is great.

    as always i try to do the code myself though sometimes hit a snag, in this cause i did again...
    I tried to add to your code (which i have attached), by adding another input box and setting the selection as 'frng', though when i tried to get it to work it is only copying 1 random result, rather than copying the result how you got them to output except not offsetting, rather using the first cell selected by the user to be the first cell to populate etc.

    I think i have my code wrong cause thinking it through if the user selects the first cell it is using that as the 'frang' and thus will only ever fill that cell. ... I tried to various things though couldnt work it out..

    hope i made better sense this time, thanks again
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: select range to copy, find values and copy

    Also tried this but cant get it to go,.. tried all of this too but to no avail

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: select range to copy, find values and copy

    Hi

    OK, here's another one.

    It will ask for the first cell of the data range, and the first cell of the output range.

    rylo
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: select range to copy, find values and copy

    wow! you did it,

    im going to study the code so i can work it out, but this is just great.

    your so good at this and always very helpful and understanding.

+ 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