|
-
May 2nd, 2006, 02:40 PM
#1
Thread Starter
New Member
Need help with syntax with a quick Macro
I have a 154 page document that requires me to edit each line to a specific format. I need to change lines like this:
scielo.isciii.es/scielo.php/script_sci_serial/pid_1139-1375/lng_en/nrm_iso
www.scielo.br/ag
www.zoosystema.com
http://www.scielo.br/scielo.php/scri...lng_en/nrm_iso
www.ijnephrol.com/index2.htm
jcom.sissa.it/
to this:
scielo.isciii.es
www.scielo.br
www.zoosystema.com
www.scielo.br
www.ijnephrol.com
jcom.sissa.it
Now the research I've done so far has led me to this (please forgive me I'm a java programmer and without a reference book I'm lost):
VB Code:
For Each element In collection
' determine the column the first / occurs and save into a variable
' delete all characters from variable to end of the line
Next element
now I know a few things:
-I need element to be each line/paragraph of the document. I say line because each URL encompasses one line. But I also say paragraph because there is a carriage return at the end of each line.
-I know collection should be the full document but I'm not sure how.
-I have no idea how to determine what column a specific character occurs
-I have no idea how to delete characters
That said I've tried MSDN and that is the worst means to find information I've ever seen. Hate it.
Any help would be greatly appreciated.
Last edited by rkidd; May 2nd, 2006 at 02:52 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|