+ Reply to Thread
Results 1 to 5 of 5

Moving rows of data automatically

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003 / 2007
    Posts
    14

    Moving rows of data automatically

    Hi.

    I was hoping you may be able to help me with a macro for the attached spreadsheet?

    I want to be able to do the following:

    1. Upon opening the spreadsheet, any rows that have a status of completed, will be removed and pasted to the completed tab.

    2. Upon opening the spreadsheet, any rows that have yes, in the added to lessons learned log field, will be removed and pasted to the lessons learned tab.

    I am quite new to excel, so would welcome your help!!!

    Thanks
    Attached Files Attached Files
    Last edited by JBeaucaire; 03-15-2013 at 11:01 AM. Reason: Corrected thread title

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Moving rows of data automatically

    In my opinion, then best time to do these changes is when you CLOSE the workbook so the updates you've just completed cause the workbook to "move data" as the workbook is closing. When you open it next, those changes will have already be done.

    Open the VB editor and paste this macro into the ThisWorkbook module:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 03-15-2013 at 11:02 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Moving rows of data automatically

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-15-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003 / 2007
    Posts
    14

    Re: Moving rows of data automatically

    Hi.

    I pasted this in as requested and it didn't work, when I ran the debug, the error was the .ShowAllData

  5. #5
    Registered User
    Join Date
    03-15-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003 / 2007
    Posts
    14

    Re: Moving rows of data automatically

    Please ignore my last message, it is working fine.

    Thanks very much!!!

+ 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