Answer the question
In order to leave comments, you need to log in
Is it possible to convert cell indents to tabs?
There is an Excel file with a list of strings, in which some kind of nesting is implemented due to indents in cells (Cell Format> Alignment> Indent). That is, the indents are only visual. This file needs to be exported to csv and then parsed programmatically. Of course, when exporting to csv, the indents do not get there in any way. Tell me, is there any way to convert indents to text in this case? Perhaps there is a suitable function in Excel itself?
Answer the question
In order to leave comments, you need to log in
The indents themselves cannot be turned into tabs.
Create a function:
public function get_indent(rng as range) as integer
get_indent = rng.indentlevel
end function
B1 = get_indent(A1)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question