lettuceplay
New Member
- Joined
- Aug 24, 2011
- Messages
- 5
Hello,
I need help with manipulating strings in VBA. For example I would like to convert:
CALL GOOG:US 12AUG2011 560 into GOOG1112H565-US
CALL C:US 21JAN2012 40 into C1221A40-US
PUT ABX:CA 21JAN2014 30 into ABX1421M30-T
Format would be.. ie first example..: SYMBOL (GOOG) YEAR (11) DAY (12) CALL/PUT MONTH (A) STRIKE (560)
The months are setup as A = January Call, B = February Call, C = March Call... L = December Call, M = January Put, N February Put, etc...
and have the two formats shown side by side.
Would anyone be able to lead me in the right direction?
I need help with manipulating strings in VBA. For example I would like to convert:
CALL GOOG:US 12AUG2011 560 into GOOG1112H565-US
CALL C:US 21JAN2012 40 into C1221A40-US
PUT ABX:CA 21JAN2014 30 into ABX1421M30-T
Format would be.. ie first example..: SYMBOL (GOOG) YEAR (11) DAY (12) CALL/PUT MONTH (A) STRIKE (560)
The months are setup as A = January Call, B = February Call, C = March Call... L = December Call, M = January Put, N February Put, etc...
and have the two formats shown side by side.
Would anyone be able to lead me in the right direction?