+ Reply to Thread
Results 1 to 10 of 10

Help finish filtering script

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    North Dakota, US
    MS-Off Ver
    Excel 2010
    Posts
    19

    Help finish filtering script

    I pull data from a site called NDRIN.com

    massive state land database

    Well i have a script that works sometimes unless the entrys are messed up


    I need it to look like this

    Section Township Range
    27 155 97
    24 157 98
    17 155 98
    30 159 97
    15 155 97
    7 158 100



    and it works but as the attachment shows that whenever i have a blank entry such as the 6th one, or an entry Legal: that uses subdivisions and lots instead of township,range,section it locks up.

    Now i could careless about lots,subdivisions and blank entry's, i want to just keep filtering and getting my data.

    Is there a code i can add to disregard entry's without township,range,section??


    CNTRL + Z to run macro and u can see that it fails because of a blank entry. If you delete the blank entry(row with the Legal: blank) it works great!!

    FullPGscript.xlsm

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Help finish filtering script

    I am on my phone so I cant look at the file yet, but why not bring the data into a PROCESS tab then add another bit of code to process it so you can then append it or do whatever it is you want to the data to get it ins a standardized form?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    01-31-2014
    Location
    North Dakota, US
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help finish filtering script

    like a 2 part macro?

  4. #4
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: Help finish filtering script

    This is not very elegant, but I've just trapped the error, removed the row and let the proc continue.
    Please Login or Register  to view this content.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

  5. #5
    Registered User
    Join Date
    01-31-2014
    Location
    North Dakota, US
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help finish filtering script

    let me try this now

  6. #6
    Registered User
    Join Date
    01-31-2014
    Location
    North Dakota, US
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help finish filtering script

    did you set another hotkey to run it?

  7. #7
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: Help finish filtering script

    no - just go into the proc and hit F5

  8. #8
    Registered User
    Join Date
    01-31-2014
    Location
    North Dakota, US
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help finish filtering script

    that works, thanks man just wondering why the cntrl z isnt working anymore.

  9. #9
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: Help finish filtering script

    not sure about that one ... if you paste the new code over the old the hotkey should still work. maybe just reset it?

  10. #10
    Registered User
    Join Date
    01-31-2014
    Location
    North Dakota, US
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help finish filtering script

    yeah i got it, figured it woulda stayed the same since i just copied the code. Anyways appreciate it will now burn through some reports!

+ 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. Edditing a script for filtering results
    By mattr11992 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-11-2014, 03:46 PM
  2. Replies: 5
    Last Post: 06-30-2011, 03:26 PM
  3. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  4. Script that edits the text printed on the button that runs the script
    By petalred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2008, 02:41 PM
  5. Need script for filtering data
    By FUZION in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2006, 12:10 PM

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