+ Reply to Thread
Results 1 to 2 of 2

Moving rows to another worksheet once cell value entered

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Brighton
    MS-Off Ver
    Office 365
    Posts
    1

    Moving rows to another worksheet once cell value entered

    I have a large spreadsheet for inputting sales data across columns A to AE. I'm looking for a solution were a user entering a cell value would move the entire row to another worksheet.

    In my ideal scenario, a user would enter data in Sheet 1 for columns A to AE and when they entered ‘Yes’ in column AE, the entire row would move across to Sheet 2.

    Also, if I’m able to include a ‘button’ function to enable the user to action the solution/move once they’ve entered the ‘Yes’ into column AE, that would also be great

    Thanking you in advance!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Moving rows to another worksheet once cell value entered

    Normally I and I imagine a lot of other contributors to this board would not respond to a post that does not have a sample workbook. There is work involved in duplicating a workbook that you may already have. So, in the future, include a sample workbook and people will be more likely to respond.

    In this case, the setup was not all that difficult. You WILL have to modify the code to suit your needs. Very often with a sample workbook, you can run the code as is.

    Put the following code on the Sheet Module for the sheet you have Column AE on.
    Please Login or Register  to view this content.
    You do not need a button. As soon as yes (case does not matter) is entered in Column AE, the code will run.

    One minor quirk is how LRow is calculated. It does not matter whether there is data on row 1 or row 1 is blank. The LRow will think that the last row with data is row 1. Since we want to add data to the next available row, we add 1. This means that the program enters data starting on row 2. The rest of the rows calculate properly.

    Since you probably have a header row in the first row of the destination sheet, this is probably what you do want.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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] Moving rows of Data to a particular worksheet if cell is ticked
    By mcsquare in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-26-2016, 08:49 AM
  2. Moving complete rows of data from one sheet to a new sheet when a date is entered
    By meadnl89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2014, 11:39 AM
  3. [SOLVED] I need help on moving a row to a diffrent page if a number is entered in cell
    By icevinson in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 03-18-2013, 08:03 AM
  4. Replies: 1
    Last Post: 05-06-2012, 11:25 AM
  5. Replies: 3
    Last Post: 07-15-2009, 06:13 AM
  6. Moving rows to another worksheet based on content of cell
    By 5tin@ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2005, 10:25 AM
  7. Replies: 2
    Last Post: 10-06-2005, 02: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