Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 91797

Trying to create a userform in VBA that returns a set of values specified based on criteria from data in an existing spreadsheet

$
0
0

I have this set of hypothetical data in a worksheet in Excel.

PhoneStoragePriceColor

iPhone 32 GB 100 Black

Galaxy 64 GB 100 Black

Pixel 64 GB 200 Black

I would like to create a userform that will be displayed after clicking a button (I know how to do this). The userform will have list boxes, spin boxes, check boxes, frames, etc. for each of the 4 criteria. The user will then enter their desired criteria and the macro will output the available options or return an error if the specified criteria does not exist. Also, if a user does not want ot include a specific criteria (say color) then this should be considered.

Expected output:

If the user says Phone name and storage are irrelevant and checks 100 for price and black for color. The output should produce all the information for the iPhone and Galaxy.

Anything helps.


Viewing all articles
Browse latest Browse all 91797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>