Unfortunately, I cannot find anything that says how to edit only part of a cell's string.Cell A1 wrote:My Book Title: My cute subtitle
So I figure loop through each cell get the string. Find the position of the ":" but then I cannot find anything.
I tried recording a Macro but the recorder output did not make any sense.
Code: Select all
For iRow = 1 To numOfRows
oCell = oSheet.getCellByreference(1,iRow)
sText = oCell.getValue()
iPos = instr(sText, ":")
//WHAT GOES HERE?
Next
Appreciate any help/