Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default Having trouble formatting paragraph in text box of form

Hi all,

I have been able to get the text I want into a text box of a form, the issue
is that I can't get it in the format I want. Specifically, I want it to do
the following:

1 - Wrap the text (I set the "Wordwrap" property of the text box to "Yes",
but it is not working)

2 - I want to set paragraphs so the new paragraph begins two spaces below
the first. I tried to do this as seen below, but it is not working. The
text is all in one line.

Thanks for your help!

Code:
Module36:
Sub test()

Dim strerrormsg As String

'If there are still missing Merchant IDs, need to bring up message and
show red button on Main Menu
strerrormsg = "The Linkshare 'Affiliate / Payment Summary' report does not
list Merchant Names but not their associated Merchant IDs. As a result, this
tool attempts to cross reference the Merchant Name in this report against the
'Member ID Field Report' and the 'Affiliate Payment Summary report, each of
which list the Merchant ID for each Merchant. Not all Merchants were able to
be cross referenced. As a result, you can manually enter in the Merchant ID
for those Merchants listed on the 'Linkshare Merchants not tied' sheet which
can be accessed from the 'Main Menu' (the button is in red)" & vbNewLine & _
" " & vbNewLine & _
"You may copy this error message by clicking on the 'Copy
Error Message to Clipboard' button below. It is suggested that you open up
'Notepad' or 'Microsoft Word', right click anywhere in the document, and
select 'Paste'"

Call Module33.frmerrormessage(strerrormsg)

End Sub
---
Module33:
Sub frmerrormessage(strerrormsg)

With frmerrormsg
.Show vbModeless
.txterrormsg = strerrormsg
End With
DoEvents

End Sub


--
Robert
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Having trouble formatting paragraph in text box of form

I am pretty sure you can set the multiline to true and use either vbCrLf or
Chr(10).



"robs3131" wrote:

Hi all,

I have been able to get the text I want into a text box of a form, the issue
is that I can't get it in the format I want. Specifically, I want it to do
the following:

1 - Wrap the text (I set the "Wordwrap" property of the text box to "Yes",
but it is not working)

2 - I want to set paragraphs so the new paragraph begins two spaces below
the first. I tried to do this as seen below, but it is not working. The
text is all in one line.

Thanks for your help!

Code:
Module36:
Sub test()

Dim strerrormsg As String

'If there are still missing Merchant IDs, need to bring up message and
show red button on Main Menu
strerrormsg = "The Linkshare 'Affiliate / Payment Summary' report does not
list Merchant Names but not their associated Merchant IDs. As a result, this
tool attempts to cross reference the Merchant Name in this report against the
'Member ID Field Report' and the 'Affiliate Payment Summary report, each of
which list the Merchant ID for each Merchant. Not all Merchants were able to
be cross referenced. As a result, you can manually enter in the Merchant ID
for those Merchants listed on the 'Linkshare Merchants not tied' sheet which
can be accessed from the 'Main Menu' (the button is in red)" & vbNewLine & _
" " & vbNewLine & _
"You may copy this error message by clicking on the 'Copy
Error Message to Clipboard' button below. It is suggested that you open up
'Notepad' or 'Microsoft Word', right click anywhere in the document, and
select 'Paste'"

Call Module33.frmerrormessage(strerrormsg)

End Sub
---
Module33:
Sub frmerrormessage(strerrormsg)

With frmerrormsg
.Show vbModeless
.txterrormsg = strerrormsg
End With
DoEvents

End Sub


--
Robert

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default Having trouble formatting paragraph in text box of form

Thanks! I didn't realize there was a multiline property. This did the trick!
--
Robert


"JLGWhiz" wrote:

I am pretty sure you can set the multiline to true and use either vbCrLf or
Chr(10).



"robs3131" wrote:

Hi all,

I have been able to get the text I want into a text box of a form, the issue
is that I can't get it in the format I want. Specifically, I want it to do
the following:

1 - Wrap the text (I set the "Wordwrap" property of the text box to "Yes",
but it is not working)

2 - I want to set paragraphs so the new paragraph begins two spaces below
the first. I tried to do this as seen below, but it is not working. The
text is all in one line.

Thanks for your help!

Code:
Module36:
Sub test()

Dim strerrormsg As String

'If there are still missing Merchant IDs, need to bring up message and
show red button on Main Menu
strerrormsg = "The Linkshare 'Affiliate / Payment Summary' report does not
list Merchant Names but not their associated Merchant IDs. As a result, this
tool attempts to cross reference the Merchant Name in this report against the
'Member ID Field Report' and the 'Affiliate Payment Summary report, each of
which list the Merchant ID for each Merchant. Not all Merchants were able to
be cross referenced. As a result, you can manually enter in the Merchant ID
for those Merchants listed on the 'Linkshare Merchants not tied' sheet which
can be accessed from the 'Main Menu' (the button is in red)" & vbNewLine & _
" " & vbNewLine & _
"You may copy this error message by clicking on the 'Copy
Error Message to Clipboard' button below. It is suggested that you open up
'Notepad' or 'Microsoft Word', right click anywhere in the document, and
select 'Paste'"

Call Module33.frmerrormessage(strerrormsg)

End Sub
---
Module33:
Sub frmerrormessage(strerrormsg)

With frmerrormsg
.Show vbModeless
.txterrormsg = strerrormsg
End With
DoEvents

End Sub


--
Robert

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't see all of the paragraph text in the cell. KW Excel Discussion (Misc queries) 3 October 25th 06 02:16 PM
Formatting text in a user form text box DB Excel Programming 0 July 23rd 05 08:09 PM
How do I add a make a new paragraph in a text cell? bearntrail Excel Discussion (Misc queries) 1 July 5th 05 10:15 PM
Formatting Form Text Chris Excel Programming 0 May 18th 05 05:43 PM
How do I add (auto text) to a paragraph? Lisa Nelson Excel Worksheet Functions 1 May 4th 05 04:07 PM


All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"