Am I Going Crazy?

  • Thread starter S. Justin Gengo
  • Start date
S

S. Justin Gengo

I'm using the office add-in to create a word document based on a template
file.

In some areas of the document I need to insert a LineBreak (Not a new
paragraph) into the document. So far I can't figure out how to do this.

Can anyone help?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
S

S. Justin Gengo

Peter,

Thanks again, but that's not it.

I want to insert the equivalent of a shift + enter in word because of the
way that special line feed reacts with a justified piece of text.

Selection.TypeParagraph(); inserts a regular paragraph. So I'm still
looking. If anyone out here knows how to insert shift + enter please let me
know.


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
S

S. Justin Gengo

Well, I found the solution. If anyone else needs to insert a line break into
word using the office add-in here's how to do it:

ThisDocument.Application.Selection.InsertBreak(Word.WdBreakType.wdLineBreak)


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top