Login | |
|
 |
VBS Script Syntax Help - 6/16/2008 10:19:28 AM
|
|
 |
|
| |
gi_james
Posts: 4
Score: 0
Joined: 6/14/2008
From: Misawa Japan
Status: offline
|
Please help on this. I need to convert this to the correct syntax. If column B ROWx = (a number greater than 999999) then Cut the range(s) beneath it, and paste it at previous row starting at column H. For example, here’s raw data (MINUS THE DASHES). For every line that contains a confirmation number (i.e. 13483836), the line or lines beneath it needs to be moved over to the end of the line with the confirmation number. Like this: Before: 2 - 13483836 - SUPPORT - 2 - BLDG949 - BLDG998 - 13:00 3 - 12:45 - 12:55 - 13:10 - 13:42 - 00:00 - 00:57 - 03B01912 - SMITH, JOHN C After: (should be one line) 2 - 13483836 - SUPPORT - 2 - BLDG949 - BLDG998 - 13:00 - 3 - 12:45 - 12:55 - 13:10 - 13:42 - 00:00 - 00:57 - 03B01912 - SMITH, JOHN C (sometimes there are more than one line beneath) (Before) 2 - 13482116 - SUPPORT - 2 - BLDG100 - BLDG200 - 13:00 3 - 12:45 - 12:55 - 13:10 - 13:42 - 00:00 - 00:57 - 03B01915 - DOE, JOHN C 3 - 12:55 - 12:55 - 13:50 - 13:52 - 00:00 - 00:55 - 03B01915 - DOE, SARA C 3 - 12:45 - 12:55 - 13:10 - 13:42 - 00:00 - 00:57 - 03B01955 - DOE, JANE C (After) 2 - 13482116 - SUPPORT - 2 - BLDG100 - BLDG200 - 13:00 - 3 - 12:45 - 12:55 - 13:10 - 13:42 - 00:00 - 00:57 - 03B01915 - DOE, JOHN C 3 - 12:55 - 12:55 - 13:50 - 13:52 - 00:00 - 00:55 - 03B01915 - DOE, SARA C 3 - 12:45 - 12:55 - 13:10 - 13:42 - 00:00 - 00:57 - 03B01955 - DOE, JANE C I would greatly appreciate any help on this. I can't seem to find what I need searching around on the net. The alternative is manually cutting and pasting cells. This take hours of time, time I'd rather be doing other things. Thanks in advance,
_____________________________
James Strickland Misawa Air Base, Japan http://www.strickstuff.com
|
|
| |
|
|
|
|
|