S
shelfish
Could someone offer a quick assist on how to capture the result of the
replace function in a variable rather than in a cell...
***********************************************************************************
Dim Alphabet As Variant
Alphabet = Array("A"..."Z")
Dim model as string
Model = Left(A1,4)
'delete all letters in string
For i = LBound(Alphabet) To UBound(Alphabet)
Replace Expression:=Model, Find:=Alphabet(i), Replace:=""
Model = [capture value from replace function above]
Next
***********************************************************************************
I'm sure I'm making a simple mistake here. Your help is appreciated.
Thanks.
S.
replace function in a variable rather than in a cell...
***********************************************************************************
Dim Alphabet As Variant
Alphabet = Array("A"..."Z")
Dim model as string
Model = Left(A1,4)
'delete all letters in string
For i = LBound(Alphabet) To UBound(Alphabet)
Replace Expression:=Model, Find:=Alphabet(i), Replace:=""
Model = [capture value from replace function above]
Next
***********************************************************************************
I'm sure I'm making a simple mistake here. Your help is appreciated.
Thanks.
S.