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 2008

Tip: Looking for answers? Try searching our database.

How do I do a return between names in a Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tdecarli - 04 Mar 2008 18:56 GMT
Hello,

I am pretty new at this programming macros in Word 2003 and need help with
the proper language/or how I get a space between names (i.e., see below)

University of California
University of Orgeon
University of Florida
Jean-Guy Marcil - 04 Mar 2008 19:52 GMT
> Hello,
>
[quoted text clipped - 4 lines]
> University of Orgeon
> University of Florida

What are you doing exactly? Your probelm is pretty nebulous, to say the least.

Do you need a space between  the words or the lines?
What are you programming? (I.e, what is your macro doing, overall?)
Are these 3 examples above variables you are trying to incoprorate into a
macro?
Is your macro trying to add the spaces? Is that all it is doing?
Is the macro supposed to act on these 3 lines of text as they are found in a
document?
Have you tried to write any code?
fumei - 04 Mar 2008 20:49 GMT
All good questions.  Extrapolating from the subject of the post "how do I do
a return...", you apparently are asking about adding the Enter (or Return)
key effect.  However, if you are going to work in programming in Word, you
have to learn to very specific and explicit.

"space" is very different from putting a paragraph mark (the effect of
pressing Enter/Return).

A string:

"University of Orgeon" & vbCrLf & "University of Florida"

would come out as:

University of Orgeon
University of Florida

University of Oregon, followed by a carriage return / line feed, followed by
University of Florida

However, Jean-Guy asks some good questions that you should give some
attention.

>> Hello,
>>
[quoted text clipped - 12 lines]
>document?
>Have you tried to write any code?
Jean-Guy Marcil - 05 Mar 2008 15:21 GMT
> All good questions.  Extrapolating from the subject of the post "how do I do
> a return...", you apparently are asking about adding the Enter (or Return)

I always forget to make the connection between the subject line and the
body. I usually dismiss the subject line. My bad.
Personally, when I ask a question, I make sure that the body is
comprehensive. I use the subject line as nothing more than an attention
grabber. I always forget that some people start asking the question in the
subject line and finish in the body. Some people, and this is a pet peeve of
mine, even forego the use of the body part all together...

Rate this thread:






 
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.