eveCalypso
Programmer
Hello All!
I am currently inserting text into a document - from a form (more complex than that, but that is all that is needed for the question to make sense!).
I have a bookmark in my form where this text goes.
It may or may not be a few paragraphs - I build that in the background from user input before inserting into the document.
However!
Sometimes the user have to choose from a list of options. At present I Tab indent this list into the document. The problem is that the text can run over to a next line in some instances.
In which case I have a problem, as it then displays as:
Here is a sentence which is hopefully long enough to go over two lines!
Any indent is document specific (as opposed to be able to somehow let the string handle hanging indents - no functionality for that such as Chr(10) or similar).
I see I can change the hanging indent PER Paragraph though... which will help me immensely.
But I do not know how to access paragraph/ranges for my text.
E.g. I know selection.paragraphs(1).TabHaningIndent 1 is possible, but I can not guarentee the index.
So, here are my questions (phew - finally!):
1) Is there any way to apply a hanging indent to the document afterwards? I.e. "indent where there are tabs" - if I do it the above way, then it indents everything!
2) is there a programmatic way in which I can apply the indent at time of insertion?
3) Is there some way I can perhaps go through text and pick
up where there is a Tab in the sentence? (nasty, but perhaps my only option!)
4) autoformat (afterwards) - removes all my tabs! Is it possible to programmatically insert bullet points instead? That way, it should format correctly?
5) Any other suggestions?
Thank you in advance!!!
Best Regards
EvE (using Word 2000)
I am currently inserting text into a document - from a form (more complex than that, but that is all that is needed for the question to make sense!).
I have a bookmark in my form where this text goes.
It may or may not be a few paragraphs - I build that in the background from user input before inserting into the document.
However!
Sometimes the user have to choose from a list of options. At present I Tab indent this list into the document. The problem is that the text can run over to a next line in some instances.
In which case I have a problem, as it then displays as:
Here is a sentence which is hopefully long enough to go over two lines!
Any indent is document specific (as opposed to be able to somehow let the string handle hanging indents - no functionality for that such as Chr(10) or similar).
I see I can change the hanging indent PER Paragraph though... which will help me immensely.
But I do not know how to access paragraph/ranges for my text.
E.g. I know selection.paragraphs(1).TabHaningIndent 1 is possible, but I can not guarentee the index.
So, here are my questions (phew - finally!):
1) Is there any way to apply a hanging indent to the document afterwards? I.e. "indent where there are tabs" - if I do it the above way, then it indents everything!
2) is there a programmatic way in which I can apply the indent at time of insertion?
3) Is there some way I can perhaps go through text and pick
up where there is a Tab in the sentence? (nasty, but perhaps my only option!)
4) autoformat (afterwards) - removes all my tabs! Is it possible to programmatically insert bullet points instead? That way, it should format correctly?
5) Any other suggestions?
Thank you in advance!!!
Best Regards
EvE (using Word 2000)