Andrew Ducker (andrewducker) wrote,
Andrew Ducker
andrewducker

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.
Subscribe

  • Interesting Links for 19-06-2021

    UK trade with EU plummets in Q1 2021; eclipsed by non-EU trade (tags: UK Europe trade ) Exclusive: Hundreds Of Police Officers Accused Of…

  • Interesting Links for 18-06-2021

    The relatives frozen in time on Google Street View (tags: time history death photos Google maps ) Peter Jackson's 6-hour Beatles…

  • Interesting Links for 17-06-2021

    Why The Two-Party System Is Wrecking American Democracy (tags: politics voting usa ) Ladies: What is a dead give-away, during sex, that a man…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments