Search : in
By :

Excel VBA Help: Formatting Tables

Last answer on Nov 11, 2009 7:57:00 am GMT Zephix, on Nov 3, 2009 7:46:52 am GMT 
 Report this message to moderators

Hello experts,

I made a table that looks something like this:

A 1
B 2
B 3
C 4
C 5
D 6

I need a macro that can loop, since the number of rows will always be different. I want to delete the repetitive entires in the first column (i.e. the second B and C). Then, I want to format it so that the row for A is white, B is grey, C is white, and D is grey, and so on alternating like that.

Can anybody give me advice on this? It would be greatly appreciated.

Thanks and Best Regards,
Zephix

Configuration: Windows XP Internet Explorer 6.0

Best answers for « Excel VBA Help: Formatting Tables » in :
How to Create Msg/Popup to notifications in Excel VBA? ShowHow to Create Msg/Popup to notifications in Excel VBA? Issue Solution Note Issue I need a Excel VB script to notify/popup a message when the number of the letter U on a calendar exceeds 6, 8, 12 etc. It will have to check the range of...
Repainting a cell using excel VBA ShowRepainting a cell using excel VBA Issue Solution Note Issue I am writing a code in excel VBA to generate a report.I am totally new to VBA.Here's my code Private Sub CommandButton1_Click() Dim a1 As Integer Dim d1 As Integer Dim...
How to convert Excel into PDF? ShowHow to convert Excel into PDF? Here is a small tips about how to convert your excel files into PDF for your presentation. Step 1 PDF995 is software that gets installed on your computer which enables you to print any sources of document to...

1

Zephix, on Nov 4, 2009 6:14:07 am GMT

Right now, I have managed to get the table to look like this:

A 1
B 2
3
C 4
5
D 6

I still need help on the formatting though. So row 1/4 in one color , row 2/3/6 in another color.

Thanks

Reply to Zephix

2

 Zephix, on Nov 11, 2009 7:57:00 am GMT

You are all useless. I found out how to do it on my own using an IF and a lot of other stuff. I will not paste my code because I did not receive any of your help and it seems as if nobody else needs it either.

Reply to Zephix