Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autofilterLocation Macro #2

Open
samlrun opened this issue Oct 12, 2021 · 0 comments
Open

autofilterLocation Macro #2

samlrun opened this issue Oct 12, 2021 · 0 comments
Assignees

Comments

@samlrun
Copy link
Collaborator

samlrun commented Oct 12, 2021

Low Level Issue

This code uses the autofilter method to copy data from one sheet to another. It is found in the Sorting_Macros module. It is much more efficient than methods used in the past. However, the conditions used here are limited to only two. It would be nice to have a third option for blank cells. This could probably be simply fixed with an if statement.

Worksheets(combo).Range(Cells(1, 1), Cells(Lnumrow, Lnumcol)).AutoFilter
Worksheets(combo).Range(Cells(1, 1), Cells(Lnumrow, Lnumcol)).AutoFilter Field:=rampcol, Criteria1:="<>NA", Operator:=xlAnd, Criteria2:="<>0"      ', Operator:=xlAnd, Criteria3:="<>" FLAGGED: this would help if it's blank but cant do it.
Range(Range(Range("A2"), Range("A2").End(xlDown)), Range(Range("A2"), Range("A2").End(xlDown)).End(xlToRight)).EntireRow.Delete
Range(Cells(1, 1), Cells(1, Lnumcol)).AutoFilter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants