+ Reply to Thread
Results 1 to 7 of 7

Saving cell contents to specific cell in another sheet based on value in list

  1. #1
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Saving cell contents to specific cell in another sheet based on value in list

    Hi all,
    I am trying to complete a comment generator for my students feedback - wb attached.

    Sheet "CommentGenerator"
    Student name in cell A1
    Feedback in cell C1

    Student names in destination sheet are in $A$2:$A$31 (named studentnames)

    I need the contents of cell C1 to be copied to the appropriate cell in sheet "ClassComments" when a selection is made from the data validation list in C15 (as that is the last part of the comment) - based on the student name.

    e.g. in the file student7 is selected, therefore the comment would be saved in B8 of "ClassComments"

    Is this possible? If not, how can I program a button to do this?

    Thanks in advance Luke
    Attached Files Attached Files
    Last edited by lukestkd; 02-24-2013 at 12:36 PM.

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Saving cell contents to specific cell in another sheet based on value in list

    Hi, is this what you want?
    Attached Files Attached Files
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Re: Saving cell contents to specific cell in another sheet based on value in list

    That works perfectly! Is there any way to run the code you provided when a selection has been made in C15?

    Please Login or Register  to view this content.
    I've also tried to add to the code to copy C5, C6 and C7 into G2, H2, and I2 of class comments, but I can't solve it. Is there a glaring error in the code below:
    Please Login or Register  to view this content.
    Last edited by lukestkd; 02-24-2013 at 01:33 PM.

  4. #4
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Re: Saving cell contents to specific cell in another sheet based on value in list

    Solved it Sean:
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Saving cell contents to specific cell in another sheet based on value in list

    what do you want to do with C15?
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Saving cell contents to specific cell in another sheet based on value in list

    well done

  7. #7
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Re: Saving cell contents to specific cell in another sheet based on value in list

    Cheers for your help Sean! :D

+ 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