Column A contains a large list of text values where there are leading spaces. Based on the space value, I want to apply formatting to the cell or the row for the range. For the selection, I found a way to find the indent level; cell.offset(0,-1).value=cell.IndentLevel.
How can I find the leading space count using this approach? Would .value become .formula? There are methods to find the space count as a formula in a cell which includes =Find(Left(Trim(A1),1),A1)-1, however formulating this in vba is a bit tricky for me.
Perhaps there is a way to apply .value=cell.xx to find the leading space value so I can apply the format as required? Any suggestions? Tx!