+ Reply to Thread
Results 1 to 3 of 3

VBA to cut row and paste in sepcified sheet based on value

  1. #1
    Registered User
    Join Date
    02-09-2016
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    1

    VBA to cut row and paste in sepcified sheet based on value

    Hi there, experts!

    I currently have a document that keeps track of all my projects - a project entered per row. Each project as one of the following statues (Column A): "Proposal", "Project", "Lost", "Closed"; I also have a sheet for each statues previously mentioned (total of 4 sheets). Since projects start from "Proposal", that's where we initially enter all the project information. However, as statues change, I would like the entire row to be copied and pasted to the appropriate sheet (based on its status change), then the row deleted from the "Proposal" sheet.

    Below is the VBA I have for the "Proposal" sheet to move rows to the "Project" sheet when the status (Column A) changes to "Project":

    Please Login or Register  to view this content.
    I'm having trouble setting up this action for other statues. Can anyone help me out, please?

    Once a row is moved to its appropriate sheet, it can also move to OTHER sheets from that point (Example. from "Project" to "Complete" - that being said, can I use the same VBA code for all the sheets?


    Thanks,
    Maggie
    Last edited by alansidman; 02-10-2016 at 11:17 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,918

    Re: VBA to cut row and paste in sepcified sheet based on value

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,918

    Re: VBA to cut row and paste in sepcified sheet based on value

    In order to identify the particular project that you have now reclassified on the "Project" Sheet, it must have some sort of unique identifier in both the master and the "Project" sheet. What is that identifier. Which column is it located in? Without it, it will be nearly impossible to determine which line to remove from the "Project" Sheet. A sample workbook uploaded would assist in resolving this.

+ 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] Copy paste data one to multiple sheet based on cell value to sheet name
    By kannan1847 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2015, 12:54 AM
  2. [SOLVED] Filter the original sheet based on comparison and paste the results onto a new sheet
    By aviatecar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2014, 12:45 PM
  3. Copy and Paste Rows based on Criteria onto another sheet and sort based on oldest item
    By Kushal8684 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 05:37 AM
  4. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  5. Replies: 3
    Last Post: 11-12-2010, 04:31 AM
  6. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2006, 08:33 AM
  7. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 10:33 AM

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