Here is what I am trying to do.
Have a reference column with numbers for example 1 through 10 in Column A - with a corresponding symbol in Column B - then in a working area - be able to type a given letter in one cell and have the appropriate symbol appear in the next cell. The catch is that the symbols in Column B may be of different type faces.
What I have done so far is to group the symbols such that 1-8 are a given type face and 9 and above are a second type face - but this requires that the font be applied after the working area is filled in. I would like it to be entirely dynamic so that if I decide to change the typeface in the reference area - the working area is automatically updated.
I would have liked to do this with formulas and conditional formatting - but if VBA is the only way that is okay.
So generically:
Set A1 to a static value in plain type
Set B1 to a static value in a symbol typeface
User input (or random number generator) in D1
Lookup value in D1 from the A:B static set and set E1 to the symbol value
Apply whatever the typeface of B1 happens to be to cell E1
I know there are other ways such as index etc - but vlookup works really well for me in many cases.
hope that makes sense.
<table border=2 cellpadding="5" cellspacing="5">
<tr><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td></tr>
<tr><td>1</td><td></td><td></td><td>2</td><td</td></tr>
<tr><td>2</td><td</td><td></td><td>3</td><td>xx</td></tr>
<tr><td>3</td><td>xx</td><td></td><td>1</td><td></td></tr>
</table>
Have a reference column with numbers for example 1 through 10 in Column A - with a corresponding symbol in Column B - then in a working area - be able to type a given letter in one cell and have the appropriate symbol appear in the next cell. The catch is that the symbols in Column B may be of different type faces.
What I have done so far is to group the symbols such that 1-8 are a given type face and 9 and above are a second type face - but this requires that the font be applied after the working area is filled in. I would like it to be entirely dynamic so that if I decide to change the typeface in the reference area - the working area is automatically updated.
I would have liked to do this with formulas and conditional formatting - but if VBA is the only way that is okay.
So generically:
Set A1 to a static value in plain type
Set B1 to a static value in a symbol typeface
User input (or random number generator) in D1
Lookup value in D1 from the A:B static set and set E1 to the symbol value
Apply whatever the typeface of B1 happens to be to cell E1
I know there are other ways such as index etc - but vlookup works really well for me in many cases.
hope that makes sense.
<table border=2 cellpadding="5" cellspacing="5">
<tr><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td></tr>
<tr><td>1</td><td></td><td></td><td>2</td><td</td></tr>
<tr><td>2</td><td</td><td></td><td>3</td><td>xx</td></tr>
<tr><td>3</td><td>xx</td><td></td><td>1</td><td></td></tr>
</table>