+ Reply to Thread
Results 1 to 7 of 7

Need Macro to copy and paste the value of a row on 1 worksheet to another

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Need Macro to copy and paste the value of a row on 1 worksheet to another

    Hi, I need some help on creating a macro to copy and paste the value of a row on 1 worksheet (Open) to another worksheet (Closed), in the same workbook. Once "closed" is entered in column Q the macro should occur. The value of the "closed" row should be pasted to the end of the list in the Closed worksheet, the the row in the Open worksheet shoud then be deleted.

    Need Help.xlsm
    Last edited by be_bek; 05-21-2012 at 09:53 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need Macro to copy and paste the value of a row on 1 worksheet to another

    Hi be_bek,
    See if this code works for you.
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need Macro to copy and paste the value of a row on 1 worksheet to another

    This does not seem to be working. When I type "Closed" to an item on the Open tab, nothing happens - it remains In the Open tab as "Closed".

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need Macro to copy and paste the value of a row on 1 worksheet to another

    Do you run the macro?

    Set a breakpoint in the macro above to insure it is hitting the macro.
    http://www.cpearson.com/excel/Debug.htm

  5. #5
    Registered User
    Join Date
    05-10-2012
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need Macro to copy and paste the value of a row on 1 worksheet to another

    I get an error in the macro on this line:
    Cells(4, "Q").Select
    Can you help?

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    Dayton, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need Macro to copy and paste the value of a row on 1 worksheet to another

    This is the error I get:
    Excel Macro Error.png

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need Macro to copy and paste the value of a row on 1 worksheet to another

    I'm clueless.

    Do you have a full version of Excel? Are you using a Student version? Change the "Q" in the line to 16 and see what happens.

+ 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