+ Reply to Thread
Results 1 to 2 of 2

Move line with specific val to new sheet even if the value appears on diff line each time.

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    AZ
    MS-Off Ver
    Excel 2007
    Posts
    1

    Move line with specific val to new sheet even if the value appears on diff line each time.

    Hello, I was wondering if anyone can help with the below issue.

    I am trying to create a Macro that i need to run daily to take specific rows of data and move them to another sheet. I have recorded a macro and this worked the first time but since my data size varies each day, the references are not working the next time i run the macro.

    Ex (i want to move row where the account = 2100 to a new sheet.) If i run this today, the account is on line 10 but when i run it tomomrrow it might be on line 18.

    Eventually i will need to do this for multiple accounts but i wanted to get the feasability down for 1 account first.


    Account
    1000
    2000
    2100
    3300
    3301
    3302

    Thanks in advance

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Move line with specific val to new sheet even if the value appears on diff line each t

    Try the following code. It assumes that the account numbers are in column A starting at row 2. It will prompt you to enter the account number.
    Please Login or Register  to view this content.

+ 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