Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
text wrapping in coding lines
I prompting the start of an email through VBA and I have a few canned
paragraphs to write in the body of the email. I'm typing all of this in the coding lines in VBA and I don't want the lines to go waaaaaaaaayyyy to the right in my coding lines. How do I wrap the text to the next line and continue typing so it is all one line? olMyEmail.Body = "Attached is a permit application package including_ instrutions and copies of the Design Exception form_ (if needed) and the permit application forms." This does not work...any suggestions? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
text wrapping in coding lines
On Jul 16, 9:57*am, gab1972 wrote:
I prompting the start of an email through VBA and I have a few canned paragraphs to write in the body of the email. *I'm typing all of this in the coding lines in VBA and I don't want the lines to go waaaaaaaaayyyy to the right in my coding lines. *How do I wrap the text to the next line and continue typing so it is all one line? * * olMyEmail.Body = "Attached is a permit application package including_ * * * * * * * * * * * * * * * * *instrutions and copies of the Design Exception form_ * * * * * * * * * * * * * * * * *(if needed) and the permit application forms." This does not work...any suggestions? Nevermind....once again...I figured out my own answer. I really need to start thinking just a bit more before I post. Sorry for the clutter. "Attached is a permit application package " & _ "including instructions and copies of the " & _ etc., etc. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
text wrapping in coding lines
You must break your long lines into separate sub-strings and then
concatenate them. For example, this line ... L = "Pretend this is a very long line of code that you want to break apart" becomes this... L = "Pretend this is a very long " & _ "line of code that you want to " & _ "break apart" And don't forget to keep the blank space at any "break points" attached to one of the substrings that you have formed. -- Rick (MVP - Excel) "gab1972" wrote in message ... I prompting the start of an email through VBA and I have a few canned paragraphs to write in the body of the email. I'm typing all of this in the coding lines in VBA and I don't want the lines to go waaaaaaaaayyyy to the right in my coding lines. How do I wrap the text to the next line and continue typing so it is all one line? olMyEmail.Body = "Attached is a permit application package including_ instrutions and copies of the Design Exception form_ (if needed) and the permit application forms." This does not work...any suggestions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I prevent a long string of text from wrapping in a text fil | Excel Discussion (Misc queries) | |||
Wrapped text stops wrapping after 8 lines in MS Exel. How to fix? | Excel Discussion (Misc queries) | |||
I am using wrap text in excel, so why isn't all my text wrapping? | Excel Discussion (Misc queries) | |||
Wrapping in Excel (fitting many lines of text in cell to print rig | Excel Discussion (Misc queries) | |||
soft-coding lines in a macro | Excel Discussion (Misc queries) |