Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Textbox value doesn't output correctly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
frank - 01 Mar 2007 21:36 GMT
I've never liked the "Mark Citation" form used for table of athorities that
comes with Word 2000 so I'm creating a better one.  I'm using a textbox on my
form to mark the text but when I place the value of the text box
(textbox.value) into the document, any manual line breaks entered into the
box come out as a hard returns in the document.  Is there a value to output
the value of the textbox into the document with the Manual line breaks placed
properly?  Do I need to dim a variable as a particular type and assign the
textbox.value to that variable before I output it?
Jean-Guy Marcil - 01 Mar 2007 22:14 GMT
frank was telling us:
frank nous racontait que :

> I've never liked the "Mark Citation" form used for table of
> athorities that comes with Word 2000 so I'm creating a better one.
[quoted text clipped - 5 lines]
> to dim a variable as a particular type and assign the textbox.value
> to that variable before I output it?

How do you enter the manual line break in the Textbox?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

frank - 01 Mar 2007 23:01 GMT
I GOT IT!

I just had to change the EnterKeyBehavior to True on that textbox.  I just
press the Enter key (NOT Shift + Enter) to create a new line and the output
is a manual line break when I paste the value of the textbox into Word.

> frank was telling us:
> frank nous racontait que :
[quoted text clipped - 10 lines]
>
> How do you enter the manual line break in the Textbox?
frank - 01 Mar 2007 23:04 GMT
Although, Shift + Enter has the same effect as Enter when that
EnterKeyBehavior is changed to True.  Both times the output is a manual line
break

> frank was telling us:
> frank nous racontait que :
[quoted text clipped - 10 lines]
>
> How do you enter the manual line break in the Textbox?
frank - 02 Mar 2007 00:10 GMT
Wait!  I spoke too soon.  That didn't fix it.  I forgot about a routine I
wrote which replaces the paragraph with a manual line break after the text
has been inserted.  I had it near the bottom of the code and I couldn't see
it when I changed the EnterKeyBehavior to True.  So that solution didn't
work, just the "Replace paragraph with Manual Line Break" routine was fixing
it.  That routine would work except the user doesn't always put a manual line
break in the textbox and if the routine ran every time, it would delete text
from the document.

Long Story short...I still need a way to output the textbox.value into the
document with manual line breaks instead of paragraphs.

> frank was telling us:
> frank nous racontait que :
[quoted text clipped - 10 lines]
>
> How do you enter the manual line break in the Textbox?
frank - 01 Mar 2007 22:24 GMT
SHIFT + Enter.

If I could just press Enter and that could create a manual line break in the
output, I would be fine with that.

> I've never liked the "Mark Citation" form used for table of athorities that
> comes with Word 2000 so I'm creating a better one.  I'm using a textbox on my
[quoted text clipped - 4 lines]
> properly?  Do I need to dim a variable as a particular type and assign the
> textbox.value to that variable before I output it?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.