{"id":2369,"date":"2009-05-29T22:01:43","date_gmt":"2009-05-30T03:01:43","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=2369"},"modified":"2009-05-29T22:01:43","modified_gmt":"2009-05-30T03:01:43","slug":"on-mad-macro-coding-skillz","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=2369","title":{"rendered":"On Mad Macro Coding Skillz"},"content":{"rendered":"<p>At work on Fridays, we have a weekly production meeting for the department.  It&#8217;s a &#8220;Who&#8217;s working on what&#8221; sort of meeting, as the managing editor of each publication goes over what topics and\/or articles their publications are covering in the next week or two, or updates are given as to the status in the production cycle on each.  For the most part, the meeting is geared toward the online publications.<\/p>\n<p>Sometimes the meeting lasts fifteen minutes.  Sometimes it lasts an hour and a half.  It just depends on what&#8217;s going on.<\/p>\n<p>This week&#8217;s meeting was a forty-five minute meeting.<\/p>\n<p>And, strangely, I contributed.<\/p>\n<p>An idea was being kicked around for some new online content.  Valid points were being made, but the thinking was that the content wouldn&#8217;t really work.<\/p>\n<p>So I said, &#8220;Wait.  What if we did <i>this<\/i> instead?  I&#8217;m already producing this data, and we do absolutely <i>nothing<\/i> with it.&#8221;<\/p>\n<p>Suddenly, this seemed like a very wise idea, and just as suddenly I had a new responsibility on my plate.<\/p>\n<p>But how to format the information efficiently?<\/p>\n<p>A table!<\/p>\n<p>And it&#8217;s in Excel.<\/p>\n<p>So I put my mad Excel coding skillz to use.<\/p>\n<p>I wrote a macro to take the standard spreadsheet that I generate every month (because it&#8217;s in my list of things-to-do once a month) that I do nothing with, and I concatenate a few columns, delete out the extraneous columns, rename the column headers, and then&#8230;<\/p>\n<p>The macro puts in HTML table tags.<\/p>\n<p>I save the spreadsheet as plain text, load it in Word, change the tabs to hard returns, and then, bam!  I have an HTML table ready to go.<\/p>\n<p>I cracked open a Sam Adams Black Lager, put some jazz in the stereo, and started coding.  Oh, I wrote in a nasty bug, and I didn&#8217;t even catch it, but it&#8217;s fixed now.  There&#8217;s just something relaxing about Sam Adams, jazz, and Visual Basic.<\/p>\n<p>I don&#8217;t really even like the Black Lager, by the way.<\/p>\n<p>But the marco?  It&#8217;s kinda sick, actually, how well this works.<\/p>\n<p>It&#8217;s&#8230; <i>sick<\/i>.  I mean, really.  Just sick.<\/p>\n<p>Sorry, sometimes I surprise even myself.  This is one of those times. \ud83d\ude06<\/p>\n<p>I still have to document it.  But that can wait.<\/p>\n<p>What the bloody grife am I <i>listening<\/i> to?  Oh, oh.  &#8220;I Want You (She&#8217;s So Heavy),&#8221; done in a jazz style.  It sorta works.  Sorta.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At work on Fridays, we have a weekly production meeting for the department. It&#8217;s a &#8220;Who&#8217;s working on what&#8221; sort of meeting, as the managing editor of each publication goes over what topics and\/or articles their publications are covering in the next week or two, or updates are given as to the status in the<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=2369\">Continue reading <span class=\"screen-reader-text\">&#8220;On Mad Macro Coding Skillz&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[229],"tags":[550,4124],"class_list":["post-2369","post","type-post","status-publish","format-standard","hentry","category-work","tag-excel","tag-work","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2369"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2369\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2369"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}