RyanChristy
New Member
- Joined
- Aug 30, 2011
- Messages
- 11
Dear all,
I have two cells each with a data validation list.
The list from the second box is dependant upon the selection of the first.
I have done this by using CTRL SHIFT F3 on the table of data required for the second data validation list, making indirect name ranges for the options in the first data validation list.
As you cannot put spaces in named ranges - excel has added an '_' to replace the spaces. The only way this now works is if I change the inputs to the first data validation list by removing the spaces and replacing them with '_'.
This works fine - but I don't want '_' visible on the form.
I have searched many forums for ways for VBA to change font colour for a particular character - however this is dependant on either:
The cell already having differences in the font already or;
The location of the character within the cell being determined. i.e the fith character for length of 1.
Can VBA identify the '_' in the cell and change it from automatic to white so it is no longer visible?
Many Thanks in Advance.
Ryan
I have two cells each with a data validation list.
The list from the second box is dependant upon the selection of the first.
I have done this by using CTRL SHIFT F3 on the table of data required for the second data validation list, making indirect name ranges for the options in the first data validation list.
As you cannot put spaces in named ranges - excel has added an '_' to replace the spaces. The only way this now works is if I change the inputs to the first data validation list by removing the spaces and replacing them with '_'.
This works fine - but I don't want '_' visible on the form.
I have searched many forums for ways for VBA to change font colour for a particular character - however this is dependant on either:
The cell already having differences in the font already or;
The location of the character within the cell being determined. i.e the fith character for length of 1.
Can VBA identify the '_' in the cell and change it from automatic to white so it is no longer visible?
Many Thanks in Advance.
Ryan