P
Purnima
Hi,
I am trying to code a macro which will determine the first line indents of
all paragraphs in a document, and use the indent value that occurs the most
often. All the first line indents should be set to this indent value.
I have declared an integer array to store all the first line indents. Now I
have to determine the indent value which occurs the maximum in this array.
But I just cannot figure out how to do this. Sorting the array won't help,
because it will give me the highest indent value and not the value which
occurs maximum no. of times.
I'm not sure if this logic is the best. And even if it is, I don't know how
to move further with the macro.
Can anyone please direct me?
Any help will be appreciated.
Purnima.
I am trying to code a macro which will determine the first line indents of
all paragraphs in a document, and use the indent value that occurs the most
often. All the first line indents should be set to this indent value.
I have declared an integer array to store all the first line indents. Now I
have to determine the indent value which occurs the maximum in this array.
But I just cannot figure out how to do this. Sorting the array won't help,
because it will give me the highest indent value and not the value which
occurs maximum no. of times.
I'm not sure if this logic is the best. And even if it is, I don't know how
to move further with the macro.
Can anyone please direct me?
Any help will be appreciated.
Purnima.