andrewducker: (Default)
andrewducker ([personal profile] andrewducker) wrote2010-06-30 12:19 pm

I don't know how I got any work done before the internet

I was writing something to automatically produce an Excel report on our DB2 usage, and I wanted to automatically resize the columns. A quick google for excel autosize columns c# and the second hit told me the answer was "Worksheet.UsedRange.Columns.AutoFit();"

I could go and try and find the answer via the help files, but I suspect I'd be looking for a while. Google really is my best friend when coding. Well, that and Resharper.

[identity profile] crm.livejournal.com 2010-06-30 05:23 pm (UTC)(link)
the excell OLE/API makes it a really powerful scripting / database tool... just... good luck finding any documentation on it.

[identity profile] crm.livejournal.com 2010-07-01 04:10 pm (UTC)(link)
with microsoft though - i imigine thats similar to making a website in front page, then opening it in a text editor to learn html.

[identity profile] broin.livejournal.com 2010-07-01 09:44 am (UTC)(link)
Goodness, yes.

I've pretended to have lots of skillsets thanks to pasting code from forums. ;)