<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hacking at 0300 &#187; Microsoft Office</title>
	<atom:link href="http://bililite.com/blog/category/microsoft-office/feed/" rel="self" type="application/rss+xml" />
	<link>http://bililite.com/blog</link>
	<description>Thoughts on web design and programming from a very occasional volunteer webmaster</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:00:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Daylight Savings Time and the AT&amp;T 8525</title>
		<link>http://bililite.com/blog/2009/02/10/daylight-savings-time-and-the-att-8525/</link>
		<comments>http://bililite.com/blog/2009/02/10/daylight-savings-time-and-the-att-8525/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 16:34:37 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Microsoft Office]]></category>

		<guid isPermaLink="false">http://bililite.com/blog/?p=373</guid>
		<description><![CDATA[I use an AT&#038;T 8525 smartphone (it's the HTC Hermes TyTN) that a friend recommended (some friend!). I've been pulling my hair out with its daylight savings bug&#8212;events have the correct time in Outlook on the computer, but are an hour off or worse on the phone. Outlook stores events in UTC and displays them [...]]]></description>
			<content:encoded><![CDATA[<p>I use an <a href="http://www.wireless.att.com/businesscenter/8525/">AT&#038;T 8525</a> smartphone (it's the <a href="http://en.wikipedia.org/wiki/HTC_TyTN">HTC Hermes TyTN</a>) that a friend recommended (some friend!). I've been pulling my hair out with its <a href="http://forums.wireless.att.com/cng/board/message?board.id=cingular&#038;thread.id=34397&#038;view=by_date_ascending&#038;page=1">daylight savings bug</a>&mdash;events have the correct time in Outlook on the computer, but are an hour off or worse on the phone. Outlook stores events in <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time">UTC</a> and displays them in the local time zone. Events that take place during daylight savings time occur one hour earlier UTC, but Outlook knows that. Windows Mobile 6 doesn't. Why would a Microsoft programmer creating a calendar program care about daylight savings time? It only affects half the year! So all appointments during DST are listed on the phone as one hour earlier. Worse, all-day events are stored as midnight-midnight, with an extra flag marking them as all day long. The bug shifts the event to 11pm the day before, still marked as an all day event, so Easter Sunday falls on Saturday on my phone!</p>
<p>Solution: Follow the instructions at Microsoft's website: <a href="http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/daylight-savings-update.mspx">www.microsoft.com/windowsmobile/en-us/downloads/microsoft/daylight-savings-update.mspx</a>. The phone resets itself without warning; that's OK. The times are still messed up. Open Outlook and make sure your contacts and calendar are correct. Now open Active Sync and select Delete Mobile Device from the File menu. This means that everything on the phone that syncs (Calendar, Contacts, etc.) will be erased and recopied from the computer (Microsoft neglected to provide a way to just sync with "computer overwrites handheld" for just the calendar, the way Palm does). Connect the phone. A "Connected" message appears in Active Sync, then the whole program disappears. Disconnect the phone and reconnect. A "Connected" message appears in Active Sync, then the setup wizard starts, and you can sync as usual. Pray that all your critical appointments will be copied correctly (this took 2 hours with my data). The phone calendar now has the correct days for all-day events, but the times are still off. Changing the date to a day in DST (under Settings/System tab/Clock and Alarms), however, corrects the times, both during DST and regular time. Changing the date to the correct date does not lose the correction. Restarting the phone makes it forget the correction, so you have to do the change date hack again.</p>
<p>Liberally mutter or curse while performing this arcane art.</p>
<p>Bottom Line solution:</p>
<ol>
<li>Don't buy Microsoft products</li>
<li>If you must buy Microsoft products, don't depend on them</li>
<li>If you must depend on them, keep multiple backups and count the days until you can justify buying an iPhone</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://bililite.com/blog/2009/02/10/daylight-savings-time-and-the-att-8525/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning a table into a list in Excel</title>
		<link>http://bililite.com/blog/2008/10/23/turning-a-table-into-a-list-in-excel/</link>
		<comments>http://bililite.com/blog/2008/10/23/turning-a-table-into-a-list-in-excel/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 05:29:45 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Microsoft Office]]></category>

		<guid isPermaLink="false">http://bililite.com/blog/?p=158</guid>
		<description><![CDATA[The yomim tovim are over, so I will hopefully have a chance to play with jQuery again. But on the programming side, one thing I had to do was turn a table of honors, something like this: Rosh Hashana 1Rosh Hashana 2Yom Kippur MaarivPerson 1Person 2Person 3 ShacharitPerson 4Person 5Person 6 MusafPerson 7Person 8Person 9 [...]]]></description>
			<content:encoded><![CDATA[The yomim tovim are over, so I will hopefully have a chance to play with jQuery again. But on the programming side, one thing I had to do was turn a table of honors, something like this:
<table border="1">
<tbody>
<tr><td></td><td>Rosh Hashana 1</td><td>Rosh Hashana 2</td><td>Yom Kippur</td></tr>
<tr><td>Maariv</td><td>Person 1</td><td>Person 2</td><td>Person 3</td></tr>
<tr><td>Shacharit</td><td>Person 4</td><td>Person 5</td><td>Person 6</td></tr>
<tr><td>Musaf</td><td>Person 7</td><td>Person 8</td><td>Person 9</td></tr>
</tbody>
</table>
And turn it into this:
<table border="1">
<tr><td>When</td><td>What</td><td>Who</td></tr>
<tr><td>Rosh Hashana 1</td><td>Maariv</td><td>Person 1</td></tr>
<tr><td>Rosh Hashana 1</td><td>Shacharit</td><td>Person 4</td></tr>
<tr><td>Rosh Hashana 1</td><td>Musaf</td><td>Person 7</td></tr>
<tr><td>Rosh Hashana 2</td><td>Maariv</td><td>Person 2</td></tr>
<tr><td>Rosh Hashana 2</td><td>Shacharit</td><td>Person 5</td></tr>
<tr><td>Rosh Hashana 2</td><td>Musaf</td><td>Person 8</td></tr>
<tr><td>Yom Kippur</td><td>Maariv</td><td>Person 3</td></tr>
<tr><td>Yom Kippur</td><td>Shacharit</td><td>Person 6</td></tr>
<tr><td>Yom Kippur</td><td>Musaf</td><td>Person 9</td></tr>
<tbody>
</tbody>
</table>
<span id="more-158"></span>
I used code like this:
<pre><code class="language-vb">
Sub createlist()
    Dim source As Range
    Set source = Range("B2:D4")
    Dim dest As Range
    Set dest = Range("F1")
    dest.Range("A1:C1").Value = Array("When", "What", "Who")
    Dim target As Range
    Dim c As Range
    For Each c In source.Cells
        If Not IsEmpty(c.Value) Then
            If IsEmpty(dest.Range("A2").Value) Then
                Set target = dest.Range("A2")
            Else
                Set target = dest.End(xlDown).Range("A2")
            End If
            target.Range("C1").Formula = "=" &#038; c.Address
            target.Range("B1").Formula = "=" &#038; c.EntireRow.Range("A1").Address ' row header
            target.Range("A1").Formula = "=" &#038; c.EntireColumn.Range("A1").Address ' column header
        End If
    Next c
End Sub
</code></pre>

<p>The key tricks was getting column/row headers with <code class="language-vb">.EntireColumn/Row.Range("A1")</code>, and appending to the end of a list with
<code class="language-vb">.End(xlDown).Range("A2")</code>. Unfortunately, <code>End(xlDown)</code> is too clever; if the region contains only one item (like the column header only), it goes all the way to the end of the spreadsheet and the <code>.Range("A2")</code>, which should get the <em>next</em> line, throws an error. Hence the <code class="language-vb">If IsEmpty(dest.Range("A2").Value) Then</code>.</p>
<p>The <code class="language-vb">If Not IsEmpty(c.Value) Then</code> line allows for blank spots in the original table to be ignored. VBA doesn't have a <code>Continue</code> statement, just an equivalent for <code>break</code>, called <code class="language-vb">Exit For</code>.]]></content:encoded>
			<wfw:commentRss>http://bililite.com/blog/2008/10/23/turning-a-table-into-a-list-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting the calendar to Outlook</title>
		<link>http://bililite.com/blog/2008/07/03/exporting-the-calendar-to-outlook/</link>
		<comments>http://bililite.com/blog/2008/07/03/exporting-the-calendar-to-outlook/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 05:29:24 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Microsoft Office]]></category>

		<guid isPermaLink="false">http://bililite.com/blog/index.php/2008/07/03/exporting-the-calendar-to-outlook/</guid>
		<description><![CDATA[I just got a Windows Mobile smartphone to replace my Palm TX (screen digitizer died). It's an ugly, kludgy and slow operating system (even after upgrading to WM 6). There's nothing as elegant as Luach that integrates Jewish calendar data in the datebook. There's a Jewish Calendar that's nice, but I ended up writing my [...]]]></description>
			<content:encoded><![CDATA[I just got a Windows Mobile smartphone to replace my Palm TX (screen digitizer died). It's an ugly, kludgy and slow operating system (even after upgrading to WM 6). There's nothing as elegant as <a href="http://www.penticon.com/luach.html">Luach</a> that integrates Jewish calendar data in the datebook. There's a <a href="http://www.tichnut.de/jewish/windowscecal.htm">Jewish Calendar</a> that's nice, but I ended up writing my own program that generates a CSV file with Hebrew dates etc. It allows you to import candlelighting times, calendar info, and even all the Young Israel events into Outlook. It's at
<a href="http://youngisrael-stl.org/articles/exportCalendarFull.php">http://youngisrael-stl.org/articles/exportCalendarFull.php</a>

Next up for that program: Cardinals, Rams and Blues schedules!
]]></content:encoded>
			<wfw:commentRss>http://bililite.com/blog/2008/07/03/exporting-the-calendar-to-outlook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
