+ Reply to Thread
Results 1 to 8 of 8

Macro to copy and paste info into specific cell

  1. #1
    Registered User
    Join Date
    12-05-2010
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    59

    Macro to copy and paste info into specific cell

    Hi,
    Can anyone help me w/ a macro that will take the comments from "Sheet 2" and paste it into the corresponding cell on the "Notes" tab for the specific name and month indicated on "Sheet 2"?

    Thank you so much!
    Attached Files Attached Files
    Last edited by janeml; 08-28-2013 at 10:43 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro to copy and paste info into specific cell

    Place this macro in the code module for worksheet Sheet2. First fill in the name and month and then the Comments. When you exit the Comments cell, it will be copied to sheet "Notes".
    Please Login or Register  to view this content.
    Last edited by Mumps1; 08-27-2013 at 12:56 PM.

  3. #3
    Registered User
    Join Date
    12-05-2010
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Macro to copy and paste info into specific cell

    Hi Mumps1,
    Thanks for the reply. I keep getting an error "Argument not optional"...

    Jane

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro to copy and paste info into specific cell

    Hi Jane. I'm not getting the error. Try the attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-05-2010
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Macro to copy and paste info into specific cell

    Hi Mumps,
    How can I get it so it's a public macro instead of a private macro? I would like to add a button that runs the macro when needed.

    Thanks!
    Jane

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro to copy and paste info into specific cell

    Hi Jane. The way it works in the sample file I attached is that the copying of the comments happens automatically when you fill in cell B2 in "Sheet2" and exit the cell. This saves you from having to click a button. If you don't want the copying to happen automatically, then place the following code into a regular module, create your button and assign the macro to it. If you choose to use a button, delete the macro from the worksheet code module otherwise the copying will continue to happen automatically.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 08-28-2013 at 08:06 AM.

  7. #7
    Registered User
    Join Date
    12-05-2010
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Macro to copy and paste info into specific cell

    Got it!!! Thanks Mumps1!

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro to copy and paste info into specific cell

    My pleasure.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VLookup a specific # in a cell that contains multiple #s...then paste row info
    By marshak in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2013, 11:11 PM
  2. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  3. [SOLVED] Macro - Copy and Paste to a Specific Row based on the input in a cell
    By usc1382 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2012, 05:05 PM
  4. Macro-Copy&Paste Fixed Data Ranges Into Last Empty Cell of Specific Column
    By hailnorm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2009, 10:15 PM
  5. Replies: 1
    Last Post: 09-07-2005, 08:05 PM

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