Converstation Formatting

routeski

New Member
Joined
Jan 20, 2005
Messages
17
Hello

I am not sure if Excel is the best package to use for this, but I think so...
I have an iPhone and have downloaded all my SMS messages into a .TXT file and looks like this:

From Ben Skart at Nov 22, 2008 23:15 :
You got a spare ticket for oasis? Mate of mine would cut a nut off for a ticket.
Send To Ben Skart at Nov 22, 2008 23:41 :
Sorry I don't have this number? But yes I think I may have a spare one!
From Ben Skart at Nov 22, 2008 23:42 :
Its ben, Claire's boyfriend.
Send To Ben Skart at Nov 22, 2008 23:44 :
Ah right! Sorry man, didn't save your number. Yeah I might have one but probably won't know until the tickets get sent out.

What I want to do is have it on my screen like an iPhone conversation: Messages I've sent on Column B in Green and Received in Grey on Col A.

However there are 1000s of these messages and they don't always take up a single line and something there is a carriage return and then more message. Sometimes he replies and then sends another message before I have so its not SENT/RECEIVED/SENT/RECEIVED kind of strict order.

I hope this makes sense! I'm thinking conditional formatting will help
THanks
Routeski
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I have had another idea, which may simplify things in peoples minds.

IF a cell begins with "From" then make the row green, and all the rows below it green UNTIL a cell begins with "Sent" in which case make it red, and all the rows below it red UNTIL a cell begins with "From" then make the row green, and all the rows below it green.........and repeat ad nausem!
 
Upvote 0
Sorry, I had forgotten about this.

Dim c As Range, rng
Columns("a:a").Select
lastrow = Cells(65536, Selection.Column).End(xlUp).Row

Set rng = Range("a1:a" & lastrow)


For Each c In rng
If Left(c, 4) = "From" Then
c.EntireRow.Interior.ColorIndex = 35
End If
Next c
For Each c In rng
If Left(c, 4) = "Send" Then
c.EntireRow.Interior.ColorIndex = 8
End If
Next c
Set rng = Range("a2:a" & lastrow)
For Each c In rng
If c.Offset(-1, 0).Interior.ColorIndex = 35 And c.Interior.ColorIndex = xlNone Then
c.EntireRow.Interior.ColorIndex = 35
End If
Next c
For Each c In rng
If c.Offset(-1, 0).Interior.ColorIndex = 8 And c.Interior.ColorIndex = xlNone Then
c.EntireRow.Interior.ColorIndex = 8
End If
Next c
For Each c In rng
If c.Offset(-1, 0).Interior.ColorIndex = 8 And c.Interior.ColorIndex = xlNone Then
c.EntireRow.Interior.ColorIndex = 8
End If
Next c
 
Upvote 0
Superb. Thanks very much.

Next step would be to put a border round each conversation and shift the "sent" item to another column a la iPhone?
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,240
Members
448,555
Latest member
RobertJones1986

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top