+ Reply to Thread
Results 1 to 9 of 9

Copy data from one sheet (Fixed Cells and sheet) to another sheet

  1. #1
    Registered User
    Join Date
    04-18-2009
    Location
    Dunmore, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Copy data from one sheet (Fixed Cells and sheet) to another sheet

    i have created a multi sheet work book that i am going to use for NFL fantasy draft next year. I want to be able to copy a name from one sheet (Available Players), paste it to a cell in another sheet (Round 1 through Round 20). The cell that will be copied is fixed but the place where it will be pasted will be different and may be on a different sheet. also i would like to change the color of the copied cell to "greyed" out or cut if it can not be greyed out. I have created a button and put in a macro that i created but have been having problems with it, generic 1004 errors that i can not figure out. i am attaching the document. any help is greatly appreciated.

    if this post is incorrect in anyway, please let me know. thank you.
    Attached Files Attached Files
    Last edited by RCatman23; 04-21-2009 at 12:57 PM. Reason: document is right on perfect

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    Here's how I would do it. Look over in "Available Players" column U, I've created a self-diminishing list of players. All the ROUND1-20 sheets have a dropdown list in the selection range G9:G20. As a name is selected ANYWHERE on those sheets, the name is removed from the next drop box. There's no way to pick a name twice.

    As you requested, your original list in column D also greys out the used names so you can scan the list easily, but DO NOT CUT AND PASTE. Just use the drop box in each cell on the Round1-20 pages to make each selection.

    Ladainian Tomlinson is already grey because he's chosen on the Round1 page.

    NOTE: There is a named range in column U that is being used for the validation lists in the drop down boxes.

    NOTE: For the KEY formula in column S to work, I had to remove the spaces in the names of your ROUND1-20 sheetnames.
    Last edited by JBeaucaire; 04-20-2009 at 03:02 AM. Reason: Sheet removed...see below for latest version
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    By the way, 20 sheets seems a lot when your DRAFT RESULTS sheet could do ALL the work of all 20 sheets.

  4. #4
    Registered User
    Join Date
    04-18-2009
    Location
    Dunmore, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    wow thank you so much, the one reason i was doing it with a button on the available players sheet was because this will be on a big screen tv during a draft. i am trying to make it more visually good looking. By having it so that i click on a button on the available players sheet i can use that sheet as my main and then once i click on the button to draft a player it brings me to the current round and shows who is picking next. I do like it this way also but how would i expand the list on the available players list to show on the rounds page?

    Note: would it be easy to do it the other way with the button if its possible?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    Well, if it's all about the show....hehe. I took out all the stuff I added and gave you a simple copy macro like you originally envisioned.

    HOWEVER, the copying is being done into the DRAFT RESULTS page, and ROUND1-20 has the formulas that reflect the values from the DRAFT RESULTS.

    In short, don't edit anything on the ROUND1-20 sheets, it's dynamic. All the work is being done on Available Players and Draft Results.

    Your command button does the work based on the HIGHLIGHTED cell, so I made it so the button is always visible.
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 04-20-2009 at 03:02 AM. Reason: Sheet removed...see below for latest version

  6. #6
    Registered User
    Join Date
    04-18-2009
    Location
    Dunmore, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    i am really not trying to be a pain, when i click the draft button it is coping from the available players list to the round sheet but its not taking me back to that sheet and if i clear out that pick on the round sheet it is not clearing out the grey out of the name on the available player sheet and the name is not usuable again and its automaticly going to the next pick even if there is no name in the cell above it. I know i can get around all this with hyperlinks and not making the wrong picks so this is not that important. i have been trying to get this part to work for the past year so you dont know how much help this has been. i thank you.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    No, you didn't read my message about how it's working. when you click DRAFT PLAYER it's not putting ANYTHING in the round sheet, it's putting an entry in the DRAFT RESULTS page. The individual round sheets are all getting their entries from the DRAFT RESULTS page.

    Anyway, here you go, another button has been added to reset the sheet FOR you so it's done correctly. Don't add/delete/copy anything.

    In fact, I realized you could draft empty cells and the same player multiple times, so I added in code to keep that from happening. Try it..try the same player multiple times or drafting on an empty cell.

    Also added code to jump you to the ROUND you're currently in...good for the "show" right? Remember, don't edit anything on those pages, they're live links to the draft results.

    EDITED: see next post
    Last edited by JBeaucaire; 04-20-2009 at 03:18 AM. Reason: Sheet removed...see below for latest version

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    Sorry, I found multiple problems with the sheetnames and the named boxes at the top of the round sheets, so I inserted a formula that will simply ALWAYS display the proper sheetname. Also, I realized an "are you sure" on the DRAFT RESET button was probably a good idea, so that's in there now, too.

    Hopefully this does it...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 04-20-2009 at 03:20 AM.

  9. #9
    Registered User
    Join Date
    04-18-2009
    Location
    Dunmore, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Copy data from one sheet (Fixed Cells and sheet) to another sheet

    It does everything i want it to do. i thank you, words really dont describe how greatful i am but i thank you.

+ 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