K
Ken
I want to extract data from a cell using the MID function
in VBA.
In cell A1 I have "XXX: TT"
As part of a macro I want to use this code:
MID(Range("A1"),X+1,2) to return the "TT" of cell A1.
The X above is the string location of the position of the
colon. I can't figure out the syntax in VBA to set X equal
to the location of the colon in the string. We use
the "Find" function in Excel to do that but how do you
make this happen in VBA?
TIA.
in VBA.
In cell A1 I have "XXX: TT"
As part of a macro I want to use this code:
MID(Range("A1"),X+1,2) to return the "TT" of cell A1.
The X above is the string location of the position of the
colon. I can't figure out the syntax in VBA to set X equal
to the location of the colon in the string. We use
the "Find" function in Excel to do that but how do you
make this happen in VBA?
TIA.