+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Creating a Macro that will Copy Rows to new sheet based on text input

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    Santa Cruz, California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Unhappy Creating a Macro that will Copy Rows to new sheet based on text input

    Hello,

    I apologize in advance for being a relative "newbie" to excel and more specifically to VBA and creating Macros. I have a projects database for the company I work for and need to be able to copy rows based on inserting an "x" into any of the three columns entitled "GreenBuilding," "HERS," or "T24".

    I have been trying in vain for several hours and trying to apply others code to the file, unsuccessfully. Any help would be greatly appreciated.

    Also, the file is attached.

    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Creating a Macro that will Copy Rows to new sheet based on text input

    Put this code in a blank module:
    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Creating a Macro that will Copy Rows to new sheet based on text input

    shoot...removed mine beaten to the punch again


    your way is better anyway
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-05-2011
    Location
    Santa Cruz, California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Creating a Macro that will Copy Rows to new sheet based on text input

    Thank you both for your help. The only problem that I still face is that the information when I run everything to be updated copies over twice. So, if project 4994 is in HERS and I add project 5001 then when I run everything the HERS page shows 4994 twice. Sorry, if that is confusing, I'm not to good at explaining these things.
    Last edited by diypirate; 10-10-2011 at 03:07 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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