SewerUrchin
New Member
- Joined
- Jan 25, 2005
- Messages
- 24
Hi folks. Sorry to address a facet of something that seems to have been talked about many times before, but I still can't find a straight forward answer for my problem.
I have a spreadsheet that I'm wanting to provide a validated list of values for, but I only want particular codes to be entered into the cell. So in column IQ I have the codes I'd like to have selected and placed into the cell when the user makes their selection. In column IR, I have the description of the code that the user will select. The codes by themselves may not be intuitive, so I need to provide the description with the code. I know I cannot select two columns for my validation list. So I must either do some VB coding, or I must combine the code and description into one column and somehow trim off the first three characters as the code that will be placed as the value selection.
First, is it possible to use LEFT as a function in the validation formula for the validation list? If it is, how do you do this without the "LEFT" being used when the list is being displayed to the user? If this is not possible, is it then just as easy to leave the data in separte columns while writing VB code to make the correct presentation to the end user? Would a macro that fires right after the user makes their selection but before the value is written to the cell be a possiblity, if used in conjunction with the LEFT fucntion?
I'm an extremely novice vb coder so any suggestions for an easy way to do this will be very greatly appreciated. And my apologies if this has been asked before. If it has, I couldn't find it using any serch methods i am aware of and I looked for more than an hour.
Many thanks!
Jeff
I have a spreadsheet that I'm wanting to provide a validated list of values for, but I only want particular codes to be entered into the cell. So in column IQ I have the codes I'd like to have selected and placed into the cell when the user makes their selection. In column IR, I have the description of the code that the user will select. The codes by themselves may not be intuitive, so I need to provide the description with the code. I know I cannot select two columns for my validation list. So I must either do some VB coding, or I must combine the code and description into one column and somehow trim off the first three characters as the code that will be placed as the value selection.
First, is it possible to use LEFT as a function in the validation formula for the validation list? If it is, how do you do this without the "LEFT" being used when the list is being displayed to the user? If this is not possible, is it then just as easy to leave the data in separte columns while writing VB code to make the correct presentation to the end user? Would a macro that fires right after the user makes their selection but before the value is written to the cell be a possiblity, if used in conjunction with the LEFT fucntion?
I'm an extremely novice vb coder so any suggestions for an easy way to do this will be very greatly appreciated. And my apologies if this has been asked before. If it has, I couldn't find it using any serch methods i am aware of and I looked for more than an hour.
Many thanks!
Jeff