Format text in a cell into lines and conditional coloring

Namster1

New Member
Joined
Apr 16, 2007
Messages
22
Hi

I wonder if you can help me. I have 2 problems which I need to solve asap and I am willing to beg for help!

I am trying to create a follow-up spreadsheet with an actions column. But my boss wants the column to have text numbered in rows in the cell. So e.g Actions for an item might be:
1-send letter
2-call office
3-make coffee (upto 5 max)

this list will need to be typed in, and I have tried to make excel launch a box in which the user types in the text. But that didnt work. I know how to wrap the cell but I cant get each action on a new line easily? any ideas?

Problem 2 more interesting. I have a priorities field. In which A B, C, D and E are entered (in an other language) Cells B9:B109. And I want to get conditional formating to color the boxes appropriatly. But I cant use the other language characters. So I created a formula in an other column N9:N109 which checks the Char in B column and places a number in the equivilant row in N column. But the macro to set icolor wont run on the formula! so I am now screwed!

Here is macro
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim icolor As Integer

    If Not Intersect(Target, Range("N9:N109")) Is Nothing Then
        Select Case Target
            Case Is = ""
                icolor = 2
            Case Is = 1
                icolor = 3
            Case Is = 2
                icolor = 44
            Case Is = 3
                icolor = 36
            Case Is = 4
                icolor = 8
            Case Is = 5
                icolor = 35
        Case Else
                icolor = 1

                'Whatever
        End Select
        Target.Offset(0, -12).Interior.ColorIndex = icolor
    End If

End Sub
I am sure this would be really easy for gurus but I am not too bright and I dont know why my boss wants it in excel.. when we can do it in Access. Still, I would appreciate any help on these problems.... thank you..

N
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
For your list in one cell, format the cell using Format, Cells, Alignment, Wrap Text, OK.
Enter the first line:
1-send letter
Hold down Alt and press Enter.

Enter the second line:
2-call office
Hold down Alt and press Enter.

And so on.
 
Upvote 0
Thank you that works

Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you

Its so simple when you know how!!... and its exactly what I needed... Thank you

I owe you one...

:lol: N
 
Upvote 0
We are happy when we manage to help someone, such as yourself.

Actually, some one else posted this answer some time ago. I remembered that it could be done, and, after experimenting a bit, I was lucky enough to hit on the method once again.
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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