Cell shading
May. 23rd, 2012 08:18 pmWhen half the company goes on strike and your operations roll to a stop, you find ways to occupy your time.
Usually I am pushing out tables and graphs in this application, but today I put it to a slightly better use.

I did most of the coding for this at work while I was languishing on a conference call, but I was running into a puzzling error. It was a pretty short bit of programming, so I recreated it when I got home and finally worked out the bug.
This is quite possible one of the most useless things I have done in awhile, but I am quite pleased with the results.
Usually I am pushing out tables and graphs in this application, but today I put it to a slightly better use.

I did most of the coding for this at work while I was languishing on a conference call, but I was running into a puzzling error. It was a pretty short bit of programming, so I recreated it when I got home and finally worked out the bug.
This is quite possible one of the most useless things I have done in awhile, but I am quite pleased with the results.
no subject
Date: 2012-05-24 04:53 am (UTC)You mean to tell me those are all individual cells? Holly cow =O
I assume your script read a bitmap and shaded the cells automagically?
no subject
Date: 2012-05-24 11:23 am (UTC)Yes, those are individually shaded cells, and I did it just like you said. I wrote a little job (18 lines of code) in Visual Studio to read the RGB values of a bitmap and then set the background shading in the corresponding cells in Excel.
I originally did it in colour, but the limited colour space in Excel made for rather interesting results.
no subject
Date: 2012-05-24 11:24 pm (UTC)I'd love to share that with someone in the Excel team, if you'd let me :)
no subject
Date: 2012-05-25 12:48 am (UTC)I exported one to Google Docs as well (https://docs.google.com/spreadsheet/pub?key=0Aq0RvWRrcEZLdFBNNW9ZS0hUbVlqcU5RZDlsTS0zY1E&output=html)
no subject
Date: 2012-05-24 11:16 am (UTC)no subject
Date: 2012-05-24 11:30 am (UTC)Other things such as, "In theory, it should be possible to graph a pony if I read the RGB values of a bitmap and set the cell colours to the same..."
no subject
Date: 2012-05-25 02:46 am (UTC)But that good mad, y'know. The kind that I look up to... Nay, idolize!