|
|
| Author |
Message |
| chris-red |
This post is not being displayed .
|
 chris-red Have you considered a TDM?

Joined: 21 Sep 2005 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| cimbian |
This post is not being displayed .
|
 cimbian World Chat Champion

Joined: 27 Sep 2012 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| chris-red |
This post is not being displayed .
|
 chris-red Have you considered a TDM?

Joined: 21 Sep 2005 Karma :   
|
 Posted: 16:12 - 17 Jan 2013 Post subject: |
 |
|
The file is like 2000 records long that would take ages however it gave me a good idea,
Concatenate then copy all the way down. Number the records 1,2,3,1,2,3 all the way down then pull out the 1's  ____________________ Well, you know what they say. If you want to save the world, you have to push a few old ladies down the stairs.
Skudd:- Perhaps she just thinks you are a window licker and is being nice just in case she becomes another Jill Dando.
WANTED:- Fujinon (Fuji) M42 (Screw on) lenses, let me know if you have anything. |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| cimbian |
This post is not being displayed .
|
 cimbian World Chat Champion

Joined: 27 Sep 2012 Karma :   
|
 Posted: 17:30 - 17 Jan 2013 Post subject: |
 |
|
You're welcome. ____________________ 22PlusY
Current: Moto Guzzi 1100 Breva. Previous: Honda XL650V TransAlp
Bearded, Balding, Born again Buddhist Biker |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Aff |
This post is not being displayed .
|
 Aff World Chat Champion

Joined: 05 May 2011 Karma :    
|
 Posted: 21:35 - 17 Jan 2013 Post subject: |
 |
|
Haven't written macros for ages so hope this works, give it a go:
| Code: | Sub MoveAndDelete()
Dim Sentences
Dim i As Long
Dim iWordPos As Integer
Sentences = Range("A1", Range("A65536").End(xlUp))
lRow = 0
For i = Range("A65536").End(xlUp).Row To 1 Step -1
iWordPos = InStr(LCase(Sentences(i, 1)), LCase("break;"))
If iWordPos > 0 Then
Range("A" & i).EntireRow.Delete shift:=xlShiftUp
End If
Next i
For i = Range("A65536").End(xlUp).Row To 2 Step -2
Cells(i - 1, 2).Value = Cells(i, 1).Value
Cells(i, 1).EntireRow.Delete
Next i
End Sub
|
HTH  ____________________ Current Bikes:Honda 929RR Fireblade, Honda CD200 Benly (Project), Stomp Z2 140
Electric Bike Project |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| The Shaggy D.A. |
This post is not being displayed .
|
 The Shaggy D.A. Super Spammer

Joined: 12 Sep 2008 Karma :  
|
 Posted: 21:49 - 17 Jan 2013 Post subject: |
 |
|
Is there any relationship between the case and significand values? A 2000 line case statement seems very inefficient - any chance of sticking them in a lookup table instead? ____________________ Chances are quite high you are not in my Monkeysphere, and I don't care about you. Don't take it personally.
Currently : Royal Enfield 350 Meteor
Previously : CB100N > CB250RS > XJ900F > GT550 > GPZ750R/1000RX > AJS M16 > R100RT > Bullet 500 > CB500 > LS650P > Bullet Electra X & YBR125 > Bullet 350 "Superstar" & YBR125 Custom > Royal Enfield Classic 500 Despatch Limited Edition (28 of 200) & CB Two-Fifty Nighthawk > ER5 |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 13 years, 258 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|