A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » General Discussions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how put a comma in the end of the line in word document



 
 
Thread Tools Display Modes
  #1  
Old July 23rd, 2010, 09:34 PM
juanb007 juanb007 is offline
Member
 
First recorded activity by OfficeFrustration: Jul 2010
Posts: 1
Unhappy how put a comma in the end of the line in word document

hi all !!!

I have a large file in which I need to put a comma in the end of each line how can I do that with the replace function?

thanks a lot for your help!

juan
Ads
  #2  
Old August 27th, 2010, 01:30 PM
Brian J Hoskins Brian J Hoskins is offline
Member
 
First recorded activity by OfficeFrustration: Aug 2010
Location: South Wales, UK
Posts: 1
Send a message via MSN to Brian J Hoskins
Default

Quote:
Originally Posted by juanb007 View Post
hi all !!!

I have a large file in which I need to put a comma in the end of each line how can I do that with the replace function?

thanks a lot for your help!

juan
This sounds like a job for VBA to me. It depends on your exact requirements. Can you clarify the following please:

1. Will the comma be placed at the end of each line regardless of whether there is any text on that line (i.e. a comma will be placed at the end of blank lines as well) or will the comma only be placed on lines where there is some text?

2. When you say "end of the line", do you mean you want a comma placed immediately where the text on the line finishes or do you mean you want a comma placed at the literal end of line?

3. Are there any lines that you would not want a comma placed at the end? For example, blank lines or heading lines etc.

And finally, out of interest, what is this for?

Cheers,

Brian
  #3  
Old September 28th, 2010, 06:30 AM
almedajohnson almedajohnson is offline
Banned
 
First recorded activity by OfficeFrustration: Sep 2010
Posts: 4
Default

Quote:
Originally Posted by juanb007 View Post
hi all !!!

I have a large file in which I need to put a comma in the end of each line how can I do that with the replace function?

thanks a lot for your help!

juan
I don't think you need replace function for that. According to me macro will work for that.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2004-2017 OfficeFrustration.
The comments are property of their posters.