+ Reply to Thread
Results 1 to 13 of 13

Adjust a row copy macros

  1. #1
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Adjust a row copy macros

    Hey Guys,

    I have this macro added to the code on the worksheet that does the following:
    Basically if on column 21 you type Yes, the whole row is copied on sheet "Extract" on the first available row.

    Please Login or Register  to view this content.
    However on Sheet "Extract" it turned out I need to have additional columns. How do I modify the macro to copy the row only up to column 20 (including column 20)?

    Thank you!

  2. #2
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    Do you need to clear Column 21 once the transfer is complete?

    Do you also need to clear the row or just act like a copy and paste on the next available row?

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    Please Login or Register  to view this content.
    Let me know if this works for you

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    If you need the info to stay in you previous sheet (not the Sheets("Extract")) Then delete

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Adjust a row copy macros

    Hey Excelnoub,

    The column is AA. I replaced my macro with yours and updated it like this:

    Please Login or Register  to view this content.
    But it doesn't seem to copy anything when I write Yes in AA. Did i update it correctly ?

  6. #6
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    Do you press Enter? I would add a Validation list in your Column AA so the when you drop down and select Yes the code will run.

    Try clicking in the cell again the code will run...

    Add Application.CutCopyMode = False after the last End If

  7. #7
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    Give me one min I have the same kind of code in one of my workbook and works like a charm...

    I will rearange the code to fit what you need.

  8. #8
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Adjust a row copy macros

    Thank you Excelnoub.

  9. #9
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Adjust a row copy macros

    This one indeed works like a charm!

    Thank you once again for your help!

  11. #11
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    But keep in mind that this will not clear the content in Cell, row 27 ("AA"), So you will need to add this if you need to clear the cell AA from the "Yes"


    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Adjust a row copy macros

    Also...

    For Screenupdating:

    Please Login or Register  to view this content.
    Sorry for the multiple post I am doing 5 things at once lol

  13. #13
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Adjust a row copy macros

    On the extract sheet I removed the Yes column entirely. Screenupdating addition is nice!
    Haha yes, I know the feeling. I am also jumping between 3 workbooks, depending on the priority

    Only thing left is the sorting of names by divisions in different sheets in the other topic. When you have a chance I will appreciate if you can help me out on that macro for me.

+ 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