Results 1 to 10 of 10

Thread: i want VBA to display values greater than or equal to the given number

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,970
    The attached has a different solution because using the previous technique was taking far too long to produce reliable results - each time a text box was changed it took an age to update the sheet. This is because there are too many data in column D.
    Instead, there is a macro blah4 which transforms the data in Sheet1 and puts it into Sheet3 (you could filter this new table in a similar way to how you did it it on Sheet1 but I used a pivot table instead which is fast and flexible).
    The pivot table is on Sheet3 around cell K8. Above it are some text boxes that work in a similar way to your text boxes but they work on the pivot table instead. Be aware that the text boxes only affect the 4 fields they relate to and do not affect any other filters you may have applied to the other fields.
    If you choose to update Sheet1 with new data, you will need to delete the data on Sheet3 only from row 2 downwards, then run blah4, then update the extent of the range of the pivot table source data.
    You will only need to run blah4 once when new data are placed in Sheet1
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •