+ Reply to Thread
Results 1 to 8 of 8

copy contents of cell based on drop-down association

  1. #1
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    copy contents of cell based on drop-down association

    Hi everyone,

    So I have a really complicated idea and I’m not sure if it’s possible, never mind how to do it…I have attached a spreadsheet for reference as this is quite difficult to explain.

    The spreadsheet is like an attendance report, but sometimes employees are transferred to different locations. It is set up so in that event, the person filling out the report will select the new location from the drop-down, which tells the formula at the bottom of that location not to include that employee at that location anymore.
    Problem is, you them have to manually enter that employee’s name in the next available cell of the new location.
    I would like to have the employee’s name automatically transfer to the next empty cell of the new location – not be deleted from the existing location though, just shown in both places now once a transfer is selected from the drop-down list.

    Hope you can make sense of this – please ask questions if I’m not being clear…I have partially completed the spreadsheet so you can see how it works. Thanks to anyone who can help!
    Attached Files Attached Files
    Last edited by Greed; 10-04-2011 at 03:17 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: copy contents of cell based on drop-down association

    hi, Greed, please check attachment
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: copy contents of cell based on drop-down association

    Hi watersev - not sure if I am missing something, or if something didn't get saved correctly, but I am not seeing any difference (no additional macros and does not seem to be copying the name of the transferred employee to the next available cell under the new hall...) where I have the 2 cells highlighted in yellow on the original spreasdsheet is my 'example' I need a macro to copy the name over to the other column once a transfer location is selected (H-6 was selected, so name should be transferred to the botton of the list under Hall 6)
    thanks

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: copy contents of cell based on drop-down association

    it looks you have application events turned off, the code works as expected. Run this short code first and then try to change Attendance code for any employee. The code is triggered by changing attendance code.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: copy contents of cell based on drop-down association

    **Oh, sorry, I see it now - you rock!!!!

    Hey - is that ever great...thanks!
    Now how can I make that happen in my exiting documents (there are 4 different versions) I haven't a clue how you did it and since all of the existing macros/modules appear to be the same, how can I copy this event?

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: copy contents of cell based on drop-down association

    the code is not in the standard module but in sheet1 module

  7. #7
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: copy contents of cell based on drop-down association

    Again, many thanks! You have made some very 'computer illiterate' users very happy

  8. #8
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: copy contents of cell based on drop-down association

    please check attachment, sheet is protected, there is no password to unprotect. Try to change attendance code and then delete copied cell, hope this helps
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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