KG Old Wolf
Board Regular
- Joined
- Sep 20, 2009
- Messages
- 65
I have the Bill Jelen book "VBA and MACROS" but I am missing something pretty basic.
I want to load a string to an array element and then examine a character or set of characters within it. For instance, I want to load "Ph: (212) 555-1212" and examine if the first three characters = "Ph:" or if the fifth character = "(".
I have been able to do this in other languages (sub-scripting an array element) but I am missing something here. I have loaded the string to an "Array as Variant" and then reDim Array (1 to 18) and then attempted to access "Array (1,2,3)" but that doesn't work.
I can accomplish this using other VBA commands but I want to leverage the power of array processing. What am I missing?
Thanks,
KG~
I want to load a string to an array element and then examine a character or set of characters within it. For instance, I want to load "Ph: (212) 555-1212" and examine if the first three characters = "Ph:" or if the fifth character = "(".
I have been able to do this in other languages (sub-scripting an array element) but I am missing something here. I have loaded the string to an "Array as Variant" and then reDim Array (1 to 18) and then attempted to access "Array (1,2,3)" but that doesn't work.
I can accomplish this using other VBA commands but I want to leverage the power of array processing. What am I missing?
Thanks,
KG~