Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-08-2013, 12:10 PM
srt srt is offline Text manipulation in MACRO Windows 8 Text manipulation in MACRO Office 2010 64bit
Novice
Text manipulation in MACRO
 
Join Date: Mar 2013
Location: Glasgow, UK
Posts: 15
srt is on a distinguished road
Default Text manipulation in MACRO

Hi folks,

I struggle with a simple task... As a I quite newbie with Word Macro, perhasp one of you got the answer.

I'm trying to transform the following text:

DP 43:29:02 N 003:50:39 E
DP 43:34:12 N 003:43:04 E
VD=+
VX=43:34:49 N 003:58:16 E
DP 43:45:45 N 003:59:56 E
DP 43:40:01 N 004:06:40 E
VD=-
VX=43:34:49 N 003:58:16 E
DP 43:29:02 N 003:50:39 E

I need to add one line after each "VX" line


This line should be build from:
"DB" + "whole 2 lines up without DP" + "," + "whole 1 line down without DP"

my aim is to get that:

DP 43:29:02 N 003:50:39 E
DP 43:34:12 N 003:43:04 E
VD=+
VX=43:34:49 N 003:58:16 E
DB 43:34:12 N 003:43:04 E,43:45:45 N 003:59:56 E
DP 43:45:45 N 003:59:56 E
DP 43:40:01 N 004:06:40 E
VD=-
VX=43:34:49 N 003:58:16 E
DB 43:40:01 N 004:06:40 E,43:29:02 N 003:50:39 E
DP 43:29:02 N 003:50:39 E

Many thanks !!!!

a picture is worth a thousand words

Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Text manipulation in MACRO Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Text manipulation in MACRO Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM
Text manipulation in MACRO Combobox manipulation vsempoux Word VBA 3 10-31-2009 08:58 AM
Mail merge Field Code Manipulation macjnr Mail Merge 0 09-10-2009 11:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft