Is there any method in which using a combination of VBA and data validation in Excel I'd be able to select values from a drop-down menu and have it add this text back to the cell value in a: text/text/text/text format?
I have a cell (current row of column R) in which I keep track of the types of problems the machine in that row represents. I add as many as are applicable so that cell may contain text that looks like this: Hard Drive/LCD/System Board/Screws.
I later need to compare this string from the cell in column R to the display text of a bunch of checkboxes on a website. That comparison will then become the catalyst for checking as many of the checkboxes that match.
The checkboxes on the website form have the following text:
FanFailure
MotherboardFailure
NICFailure
BrokenPlastics
WillnotPowerOn
CatastrophicDamage/BeyondEconomicRepair
LCDScreenBroken
LCDBacklightDim
DC-in/PowerPortDamage
KeyboardDamage
TrackpadErratic/Damage
BatteryFailure
LooseorMissingMotherboardScrews
WiFiFailure
SSD/HDDFailure
z_Other-PleasebeExplicitinnotes
My idea is to take the string from column R, split the text using the split function, using a delimiter of /, and to then use a series of If statements to compare. If there is a match then I can call that checkbox by ID to place a checkmark in it.
Taking the string value from column R, splitting the values and adding it to an array isn't a problem (and I have the code written that does just that). The main issue I'm running into is that by allowing a user free reign to enter any text they like, there are too many possible variations, which makes later matching of the values later on potentially difficult, and so I'd love to have some "rails" that prompts the user what to enter by having them choose those entries from a drop-down menu.
My first thought was using data validation but data validation isn't flexible enough in that if you point data validation to a list, and you choose an entry from the resulting drop-down menu, that single selection is the only entry that is entered into that cell. What I'd like is more of a choose all that applies rather than choose one single entity - and the later is currently how data validation drop-down menus, on their own, work.
Is there any method (using a combination of data validation and VBA) in which entries could be chosen from a drop-down menu but those entries are added to a string, formatted in the text/text/text/text format using VBA and then to have the final string added back as the cell's value?
This way the user will have some guideline as to what the entry should be by selecting those values from the drop-down menu (which takes away the variation) but I still leaves a value in a format that is easy to grab, break apart, and compare to the textbox display text.
Thanks much for any ideas you might have!
I have a cell (current row of column R) in which I keep track of the types of problems the machine in that row represents. I add as many as are applicable so that cell may contain text that looks like this: Hard Drive/LCD/System Board/Screws.
I later need to compare this string from the cell in column R to the display text of a bunch of checkboxes on a website. That comparison will then become the catalyst for checking as many of the checkboxes that match.
The checkboxes on the website form have the following text:
FanFailure
MotherboardFailure
NICFailure
BrokenPlastics
WillnotPowerOn
CatastrophicDamage/BeyondEconomicRepair
LCDScreenBroken
LCDBacklightDim
DC-in/PowerPortDamage
KeyboardDamage
TrackpadErratic/Damage
BatteryFailure
LooseorMissingMotherboardScrews
WiFiFailure
SSD/HDDFailure
z_Other-PleasebeExplicitinnotes
My idea is to take the string from column R, split the text using the split function, using a delimiter of /, and to then use a series of If statements to compare. If there is a match then I can call that checkbox by ID to place a checkmark in it.
Taking the string value from column R, splitting the values and adding it to an array isn't a problem (and I have the code written that does just that). The main issue I'm running into is that by allowing a user free reign to enter any text they like, there are too many possible variations, which makes later matching of the values later on potentially difficult, and so I'd love to have some "rails" that prompts the user what to enter by having them choose those entries from a drop-down menu.
My first thought was using data validation but data validation isn't flexible enough in that if you point data validation to a list, and you choose an entry from the resulting drop-down menu, that single selection is the only entry that is entered into that cell. What I'd like is more of a choose all that applies rather than choose one single entity - and the later is currently how data validation drop-down menus, on their own, work.
Is there any method (using a combination of data validation and VBA) in which entries could be chosen from a drop-down menu but those entries are added to a string, formatted in the text/text/text/text format using VBA and then to have the final string added back as the cell's value?
This way the user will have some guideline as to what the entry should be by selecting those values from the drop-down menu (which takes away the variation) but I still leaves a value in a format that is easy to grab, break apart, and compare to the textbox display text.
Thanks much for any ideas you might have!