+ Reply to Thread
Results 1 to 2 of 2

Move row from one Table in one Sheet to another Table in another Sheet based on cell value

  1. #1
    Registered User
    Join Date
    04-24-2020
    Location
    Stockholm
    MS-Off Ver
    2016
    Posts
    1

    Move row from one Table in one Sheet to another Table in another Sheet based on cell value

    Hi!

    I'm trying to figure out how to move a row from a table in one sheet to another table in another sheet based on a value (done=1).
    If I enter 1 (shown as done) the row is moved to another sheet, however - the row is added below the table in the other sheet that I have created, and not inside the table. How do I fix this?

    Please Login or Register  to view this content.


    Apart from the question above, I would like to sort the rows (in the first table) based on the priority. I have already sorted them based on date with the sorting method in Excel so I can't use that method again if you understand what I mean.
    What I want to achieve is something as shown below.

    Task 1 Priority High Date: 24 April
    Task 2 Priority High Date: 27 April

    Task 3 Priority Medium Date: 24 April
    Task 4 Priority Medium Date: 28 April

    Task 5 Priority Low Date: 24 April


    And also! I can't seem to save the macro. Everytime I re-open the Excel-file the macro code is gone. Can somebody tell me whats wrong?

    Thank you in advance!
    Last edited by Pepe Le Mokko; 04-24-2020 at 10:30 AM. Reason: Code tags

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Move row from one Table in one Sheet to another Table in another Sheet based on cell v

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

+ 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. Move row from one table to another on the same sheet based on cell value
    By Ghostrider757 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-30-2022, 12:48 AM
  2. Move entire row from a table to another table in same sheet based on cell value
    By JayAr Viray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2020, 12:28 AM
  3. Move line of selected cell from one table to another on same sheet
    By chriskay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2020, 11:38 AM
  4. [SOLVED] Move Row from a Table in one sheet to a Table in another sheet depending on cell value
    By peterchclarke in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-31-2019, 08:44 AM
  5. [SOLVED] Move Rows to another sheet based on Table Title
    By BOFH in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-19-2015, 09:53 AM
  6. [SOLVED] copy sheet based on table, rename, and hyperlink table to new sheet
    By DrZeuss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2014, 01:18 PM
  7. VBA CODE to move rows from one sheet(1) to another sheet(2) based on data in cell
    By fozzieulo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 02:43 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