<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>DaiMitnick's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/333825/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user DaiMitnick.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 01:40:42 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Re: Help with DIM and using</title>
      <link>http://www.programmersheaven.com/mb/vba/423481/423618/ReadMessage.aspx#423618</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/423481/423618/ReadMessage.aspx#423618"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;How can you have done so much coding without relying on variables? Bizarre. Well I'm guessing it's too late now, but for reference's sake, this is how you declare and assign a value to a variable in VBA: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim TheString As String
TheString = "01"
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
More commonly you may want this variable to be something the user enters, which would be: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
TheString = InputBox("Input the number here: ")
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Then to use it: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
.SourceDataFile = "U:\POLL\" &amp;amp; TheString &amp;amp; "\misc.dbf"
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps someone, if not you. Regards, Dai &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/423481/423618/ReadMessage.aspx#423618</guid>
      <pubDate>Wed, 04 May 2011 02:06:06 -0700</pubDate>
    </item>
    <item>
      <title>Re: Placing cursor in datagridview cell</title>
      <link>http://www.programmersheaven.com/mb/vbadvance/423596/423615/ReadMessage.aspx#423615</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vbadvance/423596/423615/ReadMessage.aspx#423615"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vbadvance/Board.aspx"&gt;Advance Visual Basic&lt;/a&gt; forum.&lt;/p&gt;Well the simplest solution I can see would be to after sending the command: &lt;br /&gt;
&lt;br /&gt;
SendKeys.Send("{TAB}")&lt;br /&gt;
&lt;br /&gt;
Send another for the home key: &lt;br /&gt;
&lt;br /&gt;
SendKeys.Send("{HOME}")&lt;br /&gt;
&lt;br /&gt;
Should work, let me know if not. Regards, Dai &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vbadvance/423596/423615/ReadMessage.aspx#423615</guid>
      <pubDate>Wed, 04 May 2011 01:40:36 -0700</pubDate>
    </item>
    <item>
      <title>Re: Reference Variable Row Numbers in Macro</title>
      <link>http://www.programmersheaven.com/mb/vba/423171/423183/ReadMessage.aspx#423183</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/423171/423183/ReadMessage.aspx#423183"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Hi Dragonfyre, I don't understand what you mean by reference the cells, do you wish to do something with the values in those rows, or simply select that range? &lt;br /&gt;
&lt;br /&gt;
The example below assumes the department names are in column A, and values in column B, it would go through all the rows, total up the values in column B and at the end select the range of values in column B,if it finds no matches, will messagebox to say so. Just adapt to your needs: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Sub Macro1()

Dim strDept As String
strDept = InputBox("Gimme a department name!")
Dim iRow As Integer, SumTotal As Double, FirstRow As Integer, LastRow As Integer
iRow = 2
FirstRow = 99999
LastRow = 0
Dim boolFound As Boolean
boolFound = False
Do
    If Cells(iRow, 1).Value = strDept Then
        boolFound = True
        If iRow &amp;lt; FirstRow Then FirstRow = iRow
        If iRow &amp;gt; LastRow Then LastRow = iRow
        SumTotal = SumTotal + Cells(iRow, 2).Value
    Else
        If Cells(iRow, 1).Value = "" Then GoTo NoneFound
    End If
    iRow = iRow + 1
Loop Until Cells(iRow, 1).Value &amp;lt;&amp;gt; strDept And boolFound = True

'Do something here with either the total values, or select the range
'To select the range in column B:
Range("B" &amp;amp; FirstRow &amp;amp; ":B" &amp;amp; LastRow).Select
Exit Sub

NoneFound:
MsgBox ("No values found for department " &amp;amp; strDept)
End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/423171/423183/ReadMessage.aspx#423183</guid>
      <pubDate>Wed, 13 Apr 2011 02:13:30 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/423182/ReadMessage.aspx#423182</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/423182/ReadMessage.aspx#423182"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Hi scorpion, &lt;br /&gt;
&lt;br /&gt;
Well that code still gives you the last occurrence of any value in that column, which is what you'll need if you're trying to select all the values you have, it just means you'll have blank cells in between, so just ensure your code ignores them (If Cells(i,1).Value = "" Then), if that's what you need to do, just adapt to your code where necessary. &lt;br /&gt;
&lt;br /&gt;
As to the last line, the problem here is you're referring to constants rather than writing a formula, there is no H3 constant, if you want to refer to the range, you must use the range or cells function, if you want to input a formula then put it in quotations. Also, you don't need to use the .formula if you're just inserting or extracting flat values. So, you can change this: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Range("H4").Formula = GrNo
Range("H5").Formula = 0.123 * H3
Range("H6").Formula = GrNo - H5
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Into this (flat values): &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Range("H4").Value = GrNo
Range("H5").Value = 0.123 * Range("H3").Value
Range("H6").Value = GrNo - Range("H5").Value
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Or this (formulae in the worksheet): &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Range("H4").Value = GrNo
Range("H5").Formula = "=0.123 * H3"
Range("H6").Formula = "GrNo - H5"
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this sets you up to finish it off now, don't be afraid to ask if you are stuck though. Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/423182/ReadMessage.aspx#423182</guid>
      <pubDate>Wed, 13 Apr 2011 01:48:53 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/423073/ReadMessage.aspx#423073</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/423073/ReadMessage.aspx#423073"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;To answer your first question, assuming you have no gaps in column A, you can find out how many rows there are using the following code: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim LastRowColA As Integer
LastRowColA = Range("A3001").End(xlUp).Row
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
With the function, there's a little misunderstanding here. That function is not a UDF (User Defined Function) that can be called from a cell. This is a normal function that has to be called from another sub or function. If you look at one of the earliest posts, you will see a sub called DisplayAverages, just below the code for the function, this is an example of how you can call the function to return the results. &lt;br /&gt;
The function returns an array, containing the different results. Note that the worksheet parameter you pass in has to be an actual Worksheet object, not just the name of the sheet, which is one reason why it will not work when called from a cell. &lt;br /&gt;
As for the averages you place in column A, I still would recommend putting them somewhere else, to save confusion and improve data quality, however if you do need to leave them there, you can just edit the function to ignore any of those rows. You could do this by changing the following lines: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
For i = 1 To NumberOfValues
    GetRow = Round(Rnd() * iRow, 0)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
To: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
For i = 1 To NumberOfValues
TryAgain:
    GetRow = Round(Rnd() * iRow, 0)
    If GetRow Mod 31 = 0 Then GoTo TryAgain
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/423073/ReadMessage.aspx#423073</guid>
      <pubDate>Thu, 07 Apr 2011 08:15:41 -0700</pubDate>
    </item>
    <item>
      <title>Re: Decimal to Binary Converter</title>
      <link>http://www.programmersheaven.com/mb/vba/422856/423018/ReadMessage.aspx#423018</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422856/423018/ReadMessage.aspx#423018"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;My guess would be this line: &lt;br /&gt;
&lt;br /&gt;
value = value / 2&lt;br /&gt;
&lt;br /&gt;
And the one similar to it, value is a short, which is a type of integer, which cannot have decimal places, so if value is an odd number, when divided it will try to create a decimal into the short and will just simply fail. Try changing it to double and see if that helps. HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422856/423018/ReadMessage.aspx#423018</guid>
      <pubDate>Tue, 05 Apr 2011 02:50:28 -0700</pubDate>
    </item>
    <item>
      <title>Re: String Manupilation</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422910/423017/ReadMessage.aspx#423017</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422910/423017/ReadMessage.aspx#423017"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;Hi Duck, first off, there are a few spelling and syntax errors in there so keep an eye out for that. You don't need to involve chars so heavily, the below codes will do what you're looking for. HTH, Dai&lt;br /&gt;
&lt;br /&gt;
Reverse string: &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
        Dim StrStart As String = "123456"
        Dim StrEnd As String = ""

        For Each Ka As Char In StrStart
            StrEnd = Ka &amp;amp; StrEnd
        Next
        Debug.Print(StrStart &amp;amp; " - " &amp;amp; StrEnd)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
String +10: &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
        Dim Str1 As String = "ABC", Str2 As String = ""
        Dim intChar As Integer
        For Each Ka As Char In Str1
            intChar = Asc(Ka) + 10
            Str2 &amp;amp;= Chr(intChar)
        Next
        Debug.Print(Str2)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422910/423017/ReadMessage.aspx#423017</guid>
      <pubDate>Tue, 05 Apr 2011 02:45:15 -0700</pubDate>
    </item>
    <item>
      <title>Re: UPDATE MySQL using VB.NET</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422843/423016/ReadMessage.aspx#423016</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422843/423016/ReadMessage.aspx#423016"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;Because you are trying to change values in different columns, based on the values in other various columns, you may find the way you have now is the simplest, however you can use some case statements to test if it's any quicker, something like below. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
UPDATE categories
    SET display_order = CASE id
        WHEN 1 THEN 3
        WHEN 2 THEN 4
        WHEN 3 THEN 5
    END,
    title = CASE id
        WHEN 1 THEN 'New Title 1'
        WHEN 2 THEN 'New Title 2'
        WHEN 3 THEN 'New Title 3'
    END
WHERE id IN (1,2,3)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Go to this site to understand it, it is where I took above code from: &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.karlrixon.co.uk/articles/sql/update-multiple-rows-with-different-values-and-a-single-sql-query/"&gt;http://www.karlrixon.co.uk/articles/sql/update-multiple-rows-with-different-values-and-a-single-sql-query/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422843/423016/ReadMessage.aspx#423016</guid>
      <pubDate>Tue, 05 Apr 2011 02:17:50 -0700</pubDate>
    </item>
    <item>
      <title>Re: VBA Code (Arrays) to Print PDF's from Excel</title>
      <link>http://www.programmersheaven.com/mb/VBasic/422887/423015/ReadMessage.aspx#423015</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBasic/422887/423015/ReadMessage.aspx#423015"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBasic/Board.aspx"&gt;Visual Basic&lt;/a&gt; forum.&lt;/p&gt;Well my first thought would be to use Word to create a document (template) and link that to Excel with a mail merge, will do what you need. If you are doing it in Excel, I would use the indirect formula to show the data depending upon what row you select. for instance if you have a number between 1 and 100 in cell A1 of worksheet2, to pull out what's in coolumn A you would use: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
=INDIRECT("Sheet1!A" &amp;amp; $A$1)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
You can easily change the number through code then. As for the PDFs, best way is to get yourself a PDF printer, like CutePDF or similar, preferably one which has an option to not ask for a save location on each file, otherwise you can't fully automate it (you'll sit there clicking OK 100 times). It's easy enough to get VBA to print to the active printer, or even to change printer then print, just record a macro of yourself changing to the PDF printer and printing, use the code it produces. HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/422887/423015/ReadMessage.aspx#423015</guid>
      <pubDate>Tue, 05 Apr 2011 02:04:28 -0700</pubDate>
    </item>
    <item>
      <title>Re: Please help me figure out the problem in My Formula</title>
      <link>http://www.programmersheaven.com/mb/vba/423003/423014/ReadMessage.aspx#423014</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/423003/423014/ReadMessage.aspx#423014"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Could you be more specific about what doesn't work, does it stop on a line asking you to debug, or does it run and you find the outcome isn't as expected? &lt;br /&gt;
&lt;br /&gt;
The quotes you have are fine, the only things I can see that would cause a problem here, is either you are trying to insert an invalid formula (i.e. if say you put a formula into B7 that does a countif on previous 10 rows, it will fail), or perhaps the last line, if you are looking to just go to the next line, you need to remove the Myrow bit, i.e. should look like: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
ActiveCell.Offset(1).Select
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/423003/423014/ReadMessage.aspx#423014</guid>
      <pubDate>Tue, 05 Apr 2011 01:48:07 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/423013/ReadMessage.aspx#423013</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/423013/ReadMessage.aspx#423013"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;OK, I was just about to answer your questions, had some good answers ready too, shame. Well the 30 random values thing was given a while ago, you have changed many things in your workbook since, so perhaps is no longer fit for purpose, may need a little editing, should work though. &lt;br /&gt;
&lt;br /&gt;
What code are you using to call the function? Post it please. Also, try to figure out where it falls over, to do this put in: Debug.Print "Step 1", and step 2 etc. about every three lines (not inside loops) and when you next check the VBE, you will be able to see at which step it stopped. &lt;br /&gt;
&lt;br /&gt;
Without some code to look at I can't tell you why it doesn't work, as it works fine for me. Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/423013/ReadMessage.aspx#423013</guid>
      <pubDate>Tue, 05 Apr 2011 01:30:38 -0700</pubDate>
    </item>
    <item>
      <title>Re: Caculation</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422803/422832/ReadMessage.aspx#422832</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422803/422832/ReadMessage.aspx#422832"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;Try changing it to double. &lt;br /&gt;
&lt;br /&gt;
D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422803/422832/ReadMessage.aspx#422832</guid>
      <pubDate>Mon, 28 Mar 2011 11:50:13 -0700</pubDate>
    </item>
    <item>
      <title>Re: Caculation</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422803/422827/ReadMessage.aspx#422827</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422803/422827/ReadMessage.aspx#422827"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;Hi Young, yes this Dim you speak of is the way in which you declare variables. You do Dim &amp;lt;variable name&amp;gt; As &amp;lt;variable type&amp;gt;. You can then assign values to these variables and perform calculations on them. For instance your code would need to be something like (but more added): &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim intWidth as Integer
Dim intHeight as Integer
Dim intResult as Integer

IntWidth = 50
IntHeight = 100
IntResult = (IntWidth * IntResult) / 2

MsgBox(IntResult)

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This would display a message simply saying 2500. &lt;br /&gt;
For more on variables take a look at: &lt;br /&gt;
&lt;a href="http://visualbasic.about.com/od/quicktips/qt/vardeclare.htm"&gt;http://visualbasic.about.com/od/quicktips/qt/vardeclare.htm&lt;/a&gt;&lt;br /&gt;
And any other beginner sites for VB.NET &lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422803/422827/ReadMessage.aspx#422827</guid>
      <pubDate>Mon, 28 Mar 2011 09:21:19 -0700</pubDate>
    </item>
    <item>
      <title>Re: Loops</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422806/422826/ReadMessage.aspx#422826</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422806/422826/ReadMessage.aspx#422826"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;This is a very easy one to code for, but if I give you the code you won't learn anything. What you will need is an inputbox to record the value the user gives, if you have a variable called 'TheNumber', just type into visual studio, &lt;br /&gt;
&lt;br /&gt;
TheNumber = InputBox(&lt;br /&gt;
&lt;br /&gt;
You will then work the rest of that out for yourself. Then use a simple IF statement, If TheNumber &amp;gt;=2 And..." if it is false you can MsgBox the text to say they did it wrong, if true then you start your loop. There are different ways to loop but easiest here is a for loop, i.e. &lt;br /&gt;
&lt;br /&gt;
For LoopNumber = 852 to 963&lt;br /&gt;
    'Do what you must&lt;br /&gt;
Next&lt;br /&gt;
&lt;br /&gt;
You have all the bits of code you will need there, so just adjust the numbers and other parts to suit your scenario and you're done! &lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422806/422826/ReadMessage.aspx#422826</guid>
      <pubDate>Mon, 28 Mar 2011 08:55:05 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/422744/ReadMessage.aspx#422744</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/422744/ReadMessage.aspx#422744"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Not necessarily too much to do, but as you are finding the last row each time to populate it, any overlap could cause values to be overwritten incorrectly. &lt;br /&gt;
&lt;br /&gt;
I would create a separate worksheet for each scale, so that GetSWDataCom11 points to sheet "Scale1" etc. You can always compile all values into one sheet if necessary. &lt;br /&gt;
&lt;br /&gt;
Try this, if it does not work, we at least limit the possible causes. Did you change the code so that the average goes on to the next row or perhaps a different column? Once you have tried this, if it fails include your current code in your next post. Regards, D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/422744/ReadMessage.aspx#422744</guid>
      <pubDate>Fri, 25 Mar 2011 10:37:47 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/422719/ReadMessage.aspx#422719</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/422719/ReadMessage.aspx#422719"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;How do you mean simultaneously? Separate scales are all feeding into the same workbook at the same time are they? &lt;br /&gt;
&lt;br /&gt;
As you are finding some aberrations (outside the 50-150%) are slipping through and some normal values are being deleted, it would seem likely that this simultaneous running is causing it to delete at the wrong time(or place). What way are you getting these 10 simultaneous balances? (Does the macro pull through 10 values each time, or are you calling the macro 10 times?) Regards, D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/422719/ReadMessage.aspx#422719</guid>
      <pubDate>Thu, 24 Mar 2011 10:19:57 -0700</pubDate>
    </item>
    <item>
      <title>Re: Macro to read list and fill binary matrix</title>
      <link>http://www.programmersheaven.com/mb/vba/422644/422715/ReadMessage.aspx#422715</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422644/422715/ReadMessage.aspx#422715"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Hi Chris, I think you may find it easier to simply use countif formulae and use the macro to apply the formula and copy-paste the values. However, as you already have done some work, you could just edit that sub, all you really need is to move away from using column letters and start using cell references. For instance the following code: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
For Each obCurCell In Range("D371:D372")
    For Each obCurCell2 In Range("C3:C367")
        If obCurCell.Value = obCurCell2.Value Then
            loX = obCurCell2.Row
            Range("D" &amp;amp; loX) = 1
        End If
    Next
Next
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Could be changed to: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim i As Integer, j As Integer
For i = 371 To 372
    For j = 3 To 367
        If Cells(i, 4).Value = Cells(j, 3).Value Then
            Cells(j, 4).Value = 1
        End If
    Next
Next
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Then it's a simple case of changing those hard-coded numbers to variables too, i.e. instead of that 4 there, change it to a variable called k (or whatever you like) and put in another for loop of "for k = 4 to 63" (columns D to BK). HTH, if you have any questions, please ask. Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422644/422715/ReadMessage.aspx#422715</guid>
      <pubDate>Thu, 24 Mar 2011 08:33:32 -0700</pubDate>
    </item>
    <item>
      <title>Re: HELP!!!!!!!!!!!!!!Counting Var / Number</title>
      <link>http://www.programmersheaven.com/mb/pasprog/422645/422653/ReadMessage.aspx#422653</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/pasprog/422645/422653/ReadMessage.aspx#422653"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/pasprog/Board.aspx"&gt;Pascal&lt;/a&gt; forum.&lt;/p&gt;EDIT: Ignore post, seems Carl addressed these issues in the time I was away from my PC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Haven't done Pascal in a few years so forgive my ignorance. First, is this line: &lt;br /&gt;
&lt;br /&gt;
readln(posi);posit:=posi;&lt;br /&gt;
&lt;br /&gt;
actually part of the if statement? To me it looks like it will be run whether the number is positive or not. Whether it is or isn't it looks like you're setting it to 0 each time, because of this line: &lt;br /&gt;
&lt;br /&gt;
posi:=0; negi:=0; zero:=0;&lt;br /&gt;
&lt;br /&gt;
As I said, I'm rusty so perhaps I'm wrong. Also, where are posit, zerot and negit declared, because if they are not global then (I believe) they will go out of scope each time you call the procedure and so it will not return any values to your main procedure. &lt;br /&gt;
&lt;br /&gt;
Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/422645/422653/ReadMessage.aspx#422653</guid>
      <pubDate>Tue, 22 Mar 2011 11:19:35 -0700</pubDate>
    </item>
    <item>
      <title>Re: VBA copy paste</title>
      <link>http://www.programmersheaven.com/mb/vba/422598/422651/ReadMessage.aspx#422651</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422598/422651/ReadMessage.aspx#422651"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;OK first off, assigning a macro... &lt;br /&gt;
&lt;br /&gt;
In Excel go to Insert&amp;gt;Shapes and pick a shape and draw it somewhere&lt;br /&gt;
Right-click the shape you have drawn and you will see an 'Assign a Macro' option, click that and choose your macro from the list, click OK&lt;br /&gt;
If you want a keyboard short-cut instead or as well, in Excel hit ALT+F8, this will bring up the Macros window, can also be found under Tools&amp;gt;Macros&amp;gt;Macros in 2003 and earlier or View&amp;gt;Macros in 2007 onwards&lt;br /&gt;
Click the 'Options' button and assign whatever key you want to use to it, then click OK&lt;br /&gt;
Note, most Ctrl shortcuts already have a function, e.g. Ctrl+A is select all, Ctrl+P is print, Ctrl+X, Ctrl+C, Ctrl+V are cut, copy, paste respectively, and the list goes on, so I recommend you don't use any of these commands, I would use Ctrl+Shift+(Any key). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As for the separating of the suppliers, you will need to build a list of what relates to supplier 1 and supplier 2, then use that list to find which one the current row relates to. This example assumes it's the Company name (Column B) that decides which it belongs to: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Sub UpdateSuppliers()
Const Supplier1Companies as String = "{ABC Ltd}{MNO Ltd}{XYZ Ltd}"
Const Supplier2Companies as String = "{DEF Ltd}{PQR Ltd}{XYZ Ltd}"

Dim iRo As Integer, NumCols As Integer, NumRow1 As Integer, NumRow2 As Integer
Dim CompSht As Worksheet, Sup1Sht As Worksheet, Sup2Sht As Worksheet
Set CompSht = Sheets("CompanyA")
Set Sup1Sht = Sheets("Supplier1")
Set Sup2Sht = Sheets("Supplier2")
NumRow1 = Sup1Sht.Cells(Sup1Sht.Rows.Count, 1).End(xlUp).Row + 1
NumRow2 = Sup2Sht.Cells(Sup2Sht.Rows.Count, 1).End(xlUp).Row + 1
If ActiveWorkbook.ActiveSheet &amp;lt;&amp;gt; CompSht Then Exit Sub
iRo = ActiveCell.Row
NumCols = 6

If InStr(1, Supplier1Companies, "{" &amp;amp; CompSht.Cells(iRo, 2).Value &amp;amp; "}") &amp;gt; 0 Then
    For i = 1 To NumCols
        'Input data...
        Sup1Sht.Cells(NumRow1, i).Value = CompSht.Cells(iRo, i).Value
    Next
End If

If InStr(1, Supplier2Companies, "{" &amp;amp; CompSht.Cells(iRo, 2).Value &amp;amp; "}") &amp;gt; 0 Then
    For i = 1 To NumCols
        'Input data...
        Sup2Sht.Cells(NumRow2, i).Value = CompSht.Cells(iRo, i).Value
    Next
End If

End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
That should do the trick. If in this example you had ABC Ltd on the line, it would go only to Supplier 1 sheet, if you had DEF Ltd, will only go to Supplier 2 sheet, if you had XYZ Ltd, it would go to both. As always, ask if you need to follow up on any of this. &lt;br /&gt;
&lt;br /&gt;
Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422598/422651/ReadMessage.aspx#422651</guid>
      <pubDate>Tue, 22 Mar 2011 10:48:36 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/422648/ReadMessage.aspx#422648</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/422648/ReadMessage.aspx#422648"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;OK I think I'm getting a clearer picture now, so the GetSWDataCom14 sub gets called each time something is weighed correct? And WData is the actual weight being pulled from the Com14 program. &lt;br /&gt;
&lt;br /&gt;
So if the weight is below 75% of the initial inputbox value (i.e. GrNom4) or above 175% (or 50 and 150, whatever) then you delete the value completely as if it had never been weighed? &lt;br /&gt;
&lt;br /&gt;
Then if they weigh something that's within these bounds (75% - 175%), but looks too high for the operator, e.g. 30.27, the operator will then weigh a 23 gram weight on the scale as a way of informing the computer that the last value was too high or low, correct? &lt;br /&gt;
&lt;br /&gt;
If yes to all 3 above, then all you need to do is change the following code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
ThisWorkbook.Sheets("Sheet1").Cells(RowPtr, 1).Formula = WData
If (WData &amp;lt; 0.75 * GrNom4 Or WData &amp;gt; 1.75 * GrNom4) And WData &amp;lt;&amp;gt; 23 Then ThisWorkbook.Sheets("Sheet1").Cells(RowPtr, 1).Value = ""
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
To this: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
ThisWorkbook.Sheets("Sheet1").Cells(RowPtr, 1).Formula = WData
If WData = 23 Then ThisWorkbook.Sheets("Sheet1").Cells(RowPtr -1, 2).Value = 23
If WData &amp;lt; 0.75 * GrNom4 Or WData &amp;gt; 1.75 * GrNom4 Or WData = 23 Then ThisWorkbook.Sheets("Sheet1").Cells(RowPtr, 1).Value = ""
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
My only worry is that you are overwriting the weight with the average formula every 31 rows, are you sure you want to overwrite it, not put it somewhere else? &lt;br /&gt;
&lt;br /&gt;
Just thinking if you get say a 30.28, on the 31st row, or 62nd etc, then you won't even know about it as it'll just be overwritten with a formula for the averages. You could simply put it on the next line instead so nothing is overwritten? &lt;br /&gt;
&lt;br /&gt;
Also, I'd recommend working out the average in the code itself, then insert the value into the cell rather than a formula, helps speed up Excel if you use less formulae, may not be noticeable on a small workbook, but as it grows you may find it slow down a little. &lt;br /&gt;
&lt;br /&gt;
Anyway I hope I have given what you need, if not, please do ask, that's what I'm here for, to answer the sort of questions I was asking everyone else 5+ years ago. &lt;br /&gt;
&lt;br /&gt;
Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/422648/ReadMessage.aspx#422648</guid>
      <pubDate>Tue, 22 Mar 2011 10:16:49 -0700</pubDate>
    </item>
    <item>
      <title>Re: How do i assign keys (I´m a beginner)</title>
      <link>http://www.programmersheaven.com/mb/game/422583/422638/ReadMessage.aspx#422638</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/game/422583/422638/ReadMessage.aspx#422638"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/game/Board.aspx"&gt;Game programming&lt;/a&gt; forum.&lt;/p&gt;I would suggest to overcome this problem, and to stop your game having problems later down the line (mainly flickering) that you abandon the pictureboxes now. &lt;br /&gt;
&lt;br /&gt;
You should learn to draw directly on the form, it's not just a lot quicker and more reliable than using pictureboxes, but it also allows you to use the form_keypress event for your controls. &lt;br /&gt;
&lt;br /&gt;
I would recommend reading the small article in the first link to understand the basis of how it works, then use the code in the 2nd link to help guide you to drawing full pictures directly to the form. &lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.ww.functionx.com/bcb/gdi/drawing101.htm"&gt;http://www.ww.functionx.com/bcb/gdi/drawing101.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.codeproject.com/KB/graphics/cpicture.aspx"&gt;http://www.codeproject.com/KB/graphics/cpicture.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/game/422583/422638/ReadMessage.aspx#422638</guid>
      <pubDate>Tue, 22 Mar 2011 03:32:54 -0700</pubDate>
    </item>
    <item>
      <title>Re: Need help changing the color of background</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422629/422637/ReadMessage.aspx#422637</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422629/422637/ReadMessage.aspx#422637"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;The background of the button or the form? Well here's both: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Button1.BackColor = Color.DarkSalmon
        Me.BackColor = Color.Aquamarine
    End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
So if you create a button called Button1, this code will change the button's colour to DarkSalmon and the form itself to Aquamarine, just play around and edit as necessary. Beware though, if you have 3d-style buttons (the default), you will notice that the border and the edge just inside the border will not change colour, if you need to colour the whole button you can set it's "FlatStyle" property to "Flat" and use the code below in addition to changing the backcolour. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Button1.FlatAppearance.BorderColor = Color.DarkSalmon
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422629/422637/ReadMessage.aspx#422637</guid>
      <pubDate>Tue, 22 Mar 2011 03:17:55 -0700</pubDate>
    </item>
    <item>
      <title>Re: Progress menu with popup?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422565/422614/ReadMessage.aspx#422614</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422565/422614/ReadMessage.aspx#422614"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;It keeps opening because each time the timer ticks, it is finding that the progress bar is full and therefore opens a messagebox as instructed. You need to either stop the timer once complete, or use a public variable (boolean is best) to tell it when to stop. So you could use this: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt; 
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Increment(10)
        If ProgressBar1.Value = 100 Then
            Timer1.Stop()
            MsgBox("Loading complete.")
        End If
    End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Or this: &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
    Public boolFin As Boolean

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If boolFin = False Then ProgressBar1.Increment(10)
        If ProgressBar1.Value = 100 Then
            If BoolFin = False Then MsgBox("Loading complete.")
            BoolFin = True
        End If
    End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422565/422614/ReadMessage.aspx#422614</guid>
      <pubDate>Mon, 21 Mar 2011 05:25:01 -0700</pubDate>
    </item>
    <item>
      <title>Re: I am facing problem with my css design ???</title>
      <link>http://www.programmersheaven.com/mb/html/422587/422612/ReadMessage.aspx#422612</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/html/422587/422612/ReadMessage.aspx#422612"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/html/Board.aspx"&gt;HTML &amp; WEB-Design&lt;/a&gt; forum.&lt;/p&gt;I don't see what's wrong, all I can see is that in Chrome, only the top part (content div) centers, in IE it all centers except the subheader, if this is all the problem is, you just need to add some center tags to the div, or remove them if you want it left-aligned. If this isn't the problem, be more specific. Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/html/422587/422612/ReadMessage.aspx#422612</guid>
      <pubDate>Mon, 21 Mar 2011 05:14:08 -0700</pubDate>
    </item>
    <item>
      <title>Re: Sub Rutine</title>
      <link>http://www.programmersheaven.com/mb/VBasic/422596/422611/ReadMessage.aspx#422611</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBasic/422596/422611/ReadMessage.aspx#422611"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBasic/Board.aspx"&gt;Visual Basic&lt;/a&gt; forum.&lt;/p&gt;The only thing I can think of is that the public variable is within a different class and perhaps you are not referring to it properly. Without seeing the code, I'm afraid I can't help any more. Dai,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/422596/422611/ReadMessage.aspx#422611</guid>
      <pubDate>Mon, 21 Mar 2011 04:59:05 -0700</pubDate>
    </item>
    <item>
      <title>Re: VBA copy paste</title>
      <link>http://www.programmersheaven.com/mb/vba/422598/422610/ReadMessage.aspx#422610</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422598/422610/ReadMessage.aspx#422610"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;OK well going on the assumption that the other sheets have the same headers, and you wish to enter the same data into both, you could use something like this: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Sub UpdateSuppliers()
Dim iRo As Integer, NumCols As Integer, NumRow1 As Integer, NumRow2 As Integer
Dim CompSht As Worksheet, Sup1Sht As Worksheet, Sup2Sht As Worksheet
Set CompSht = Sheets("CompanyA")
Set Sup1Sht = Sheets("Supplier1")
Set Sup2Sht = Sheets("Supplier2")
NumRow1 = Sup1Sht.Cells(Sup1Sht.Rows.Count, 1).End(xlUp).Row + 1
NumRow2 = Sup2Sht.Cells(Sup2Sht.Rows.Count, 1).End(xlUp).Row + 1
If ActiveWorkbook.ActiveSheet &amp;lt;&amp;gt; CompSht Then Exit Sub
iRo = ActiveCell.Row
NumCols = 6

For i = 1 To NumCols
    'Input data...
    Sup1Sht.Cells(NumRow1, i).Value = CompSht.Cells(iRo, i).Value
    Sup2Sht.Cells(NumRow2, i).Value = CompSht.Cells(iRo, i).Value
Next
End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Add a button to your first sheet (or better still assign a keyboard shortcut) to this macro. When run, it will take the row you are currently on and input the data into the other 2 sheets. This is a very basic macro, if you would want it to only put it to one of the sheets, based on the company for example, or any other intricacies, can easily be done with some if statements. If you want to know how to do something extra, just ask. HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422598/422610/ReadMessage.aspx#422610</guid>
      <pubDate>Mon, 21 Mar 2011 04:55:08 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/422607/ReadMessage.aspx#422607</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/422607/ReadMessage.aspx#422607"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Sorry I haven't replied, do not tend to check over the weekend. &lt;br /&gt;
&lt;br /&gt;
OK, I think I now know what you mean, I was a bit thrown because I thought you were only looking to do this to randomly selected numbers, but if you are looking to do it to the whole data, I'm thinking you would need to use something like the following: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Global GrNom4 As Single

Sub Write50s()
Dim iRo As Integer, NumRows As Integer, MaxValue As Double, MinValue As Double, OrigValue As Double
Dim Msg50 As String
Dim TheSht As Worksheet
Set TheSht = Sheets("Sheet1")
NumRows = TheSht.Cells(3000, 5).End(xlUp).Row
Msg50 = "Err 50: Invalid Value"
GrNom4 = InputBox("nnnnnnn&amp;amp;mmmmmmmm XX:")
MaxValue = 1.5 * GrNom4
MinValue = 0.5 * GrNom4

TheSht.Columns(6).ClearContents 'Clears column F before starting
For iRo = 1 To NumRows
    'If Column E has a value greater than the maximum allowed...
    If TheSht.Cells(iRo, 5).Value &amp;gt; MaxValue Then TheSht.Cells(iRo, 6).Value = Msg50 &amp;amp; " (too high)"
    
    'If Column E has a value smaller than the minimum allowed...
    If TheSht.Cells(iRo, 5).Value &amp;lt; MinValue Then TheSht.Cells(iRo, 6).Value = Msg50 &amp;amp; " (too low)"
    
Next
End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This is based on columns E and F again, if you wish to put the "50" code in column A, change the 6s to 1s. Hope this really does do what you need, if not, just ask again, maybe cite some more examples, We WILL get there! Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/422607/ReadMessage.aspx#422607</guid>
      <pubDate>Mon, 21 Mar 2011 04:28:59 -0700</pubDate>
    </item>
    <item>
      <title>Re: List of ALL Controls in PROJECT - VB.net</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422484/422553/ReadMessage.aspx#422553</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422484/422553/ReadMessage.aspx#422553"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;That's strange, I used the link command and that actually stopped the link displaying, never mind, have pasted the link text again. Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422484/422553/ReadMessage.aspx#422553</guid>
      <pubDate>Fri, 18 Mar 2011 06:01:04 -0700</pubDate>
    </item>
    <item>
      <title>Re: ADO.Net DBGRID</title>
      <link>http://www.programmersheaven.com/mb/TheOne/422521/422551/ReadMessage.aspx#422551</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/TheOne/422521/422551/ReadMessage.aspx#422551"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/TheOne/Board.aspx"&gt;Advanced VB.Net&lt;/a&gt; forum.&lt;/p&gt;Could you give any code? &lt;br /&gt;
&lt;br /&gt;
How are you doing it at the moment, are you making the datagrids connect directly to tables in Sql Svr, or are you sending the outputs of the query into a dataset then binding that to the datagrid? &lt;br /&gt;
&lt;br /&gt;
Can you not just use a join query, with some group by clauses to achieve what you need? &lt;br /&gt;
&lt;br /&gt;
Sorry for all the questions, just hard to help without knowing more or seeing what you're trying to achieve exactly. Regards, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/TheOne/422521/422551/ReadMessage.aspx#422551</guid>
      <pubDate>Fri, 18 Mar 2011 03:42:16 -0700</pubDate>
    </item>
    <item>
      <title>Re: Need help with visual basic please</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422537/422550/ReadMessage.aspx#422550</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422537/422550/ReadMessage.aspx#422550"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;You don't really need the checkbox_changed event, though I would leave in the first bit that disables the button, doesn't hurt, just delete the rest. You'll need to use the button click event, something like this should suffice: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Const ErrMessage1 As String = "Error: You have not entered any text"
        Const ErrMessage2 As String = "Error: You have not ticked the box"
        If String.IsNullOrEmpty(TextBox1.Text) Then GoTo Err1
        If CheckBox1.Checked = False Then GoTo Err2
        &lt;span style="color: Green;"&gt;'If you have made it this far there are no errors, so run code...&lt;/span&gt;
        RunRoutineThatHappensAfterClickingTheButton()
        Exit Sub
Err1:
        MsgBox(errmessage1)
        Exit Sub
Err2:
        MsgBox(ErrMessage2)
    End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
By the way, you may want to use a timer and public variables to know when to change the progress bar. Hope this helps, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422537/422550/ReadMessage.aspx#422550</guid>
      <pubDate>Fri, 18 Mar 2011 03:33:15 -0700</pubDate>
    </item>
    <item>
      <title>Re: List of ALL Controls in PROJECT - VB.net</title>
      <link>http://www.programmersheaven.com/mb/VBNET/422484/422519/ReadMessage.aspx#422519</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBNET/422484/422519/ReadMessage.aspx#422519"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBNET/Board.aspx"&gt;VB.NET&lt;/a&gt; forum.&lt;/p&gt;Yes, getting the controls in VB.NET is a very tricky thing indeed, one of the few disadvantages of .NET compared to Classic. The following page gives one of the easiest methods I've found for doing it: &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.codeproject.com/KB/vb/control_arrays_in_vbnet.aspx"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.codeproject.com/KB/vb/control_arrays_in_vbnet.aspx"&gt;http://www.codeproject.com/KB/vb/control_arrays_in_vbnet.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this will help you to achieve what you need. Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/422484/422519/ReadMessage.aspx#422519</guid>
      <pubDate>Thu, 17 Mar 2011 05:19:29 -0700</pubDate>
    </item>
    <item>
      <title>Re: Help VBA for EXCEL</title>
      <link>http://www.programmersheaven.com/mb/vba/422439/422518/ReadMessage.aspx#422518</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422439/422518/ReadMessage.aspx#422518"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;Not 100% sure I understand what you need, but my guess is that going down column E you have some blank values and/or zeros, you wish to ignore these and only put a 50 by the last real number when a 50 is found, so if going down column E you had the values: &lt;br /&gt;
23, 44, 50, 67, 0, 0, 50, 55, ""(blank), 50, 616&lt;br /&gt;
&lt;br /&gt;
You would want 50s to appear in Column F along side the 44, 67 and 55. &lt;br /&gt;
&lt;br /&gt;
If that is correct then the below code will achieve what you want. If it is not, please reply back with another explanation of what you're looking for. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Sub Write50s()
Dim iRo As Integer, NumRows As Integer, LastOcc As Integer
Dim TheSht As Worksheet
Set TheSht = Sheets("Sheet1")
NumRows = TheSht.Cells(3000, 5).End(xlUp).Row
LastOcc = 1
TheSht.Columns(6).ClearContents 'Clears column F before starting
For iRo = 1 To NumRows
    'If Column E has a 50, last occupied cell gets a 50 in Column F
    If TheSht.Cells(iRo, 5).Value = 50 Then TheSht.Cells(LastOcc, 6).Value = 50
    
    'If Column E isn't blank and isn't a zero, becomes last occupied cell
    If TheSht.Cells(iRo, 5).Value &amp;lt;&amp;gt; "" And TheSht.Cells(iRo, 5).Value &amp;lt;&amp;gt; 0 Then LastOcc = iRo
Next
End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
HTH, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422439/422518/ReadMessage.aspx#422518</guid>
      <pubDate>Thu, 17 Mar 2011 04:48:53 -0700</pubDate>
    </item>
    <item>
      <title>Re: Deleting Rows based on not meeting several text criteria</title>
      <link>http://www.programmersheaven.com/mb/vba/422217/422289/ReadMessage.aspx#422289</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422217/422289/ReadMessage.aspx#422289"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;&lt;br /&gt;
OK, from what I can gather, you just need to check column A to see if it's in the list of 30 companies yes? We'll go with your example and assume the companies are named A,B,C etc. The following code should work: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Const DJIAlist As String = "|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V" &amp;amp; _
"|W|X|Y|Z|AA|AB|AC|AD|" 'list of companies, with a pipe "|" character before and after their name

Sub RunRemoval()
Dim IsComplete As Boolean
IsComplete = RemoveNonDJIA(ActiveWorkbook.ActiveSheet) 'Run removal function on current sheet
If IsComplete = True Then 'if it ran OK...
    MsgBox "Everything looks kosher!"
Else
    MsgBox "It's all gone Pete Tong!"
End If
End Sub

Public Function RemoveNonDJIA(xSht As Worksheet) As Boolean
Dim iRow As Integer
On Error GoTo WeGottaGetOuttaThisPlace
iRow = 2
Do
    If InStr(1, DJIAlist, "|" &amp;amp; xSht.Cells(iRow, 1).Value &amp;amp; "|") &amp;gt; 0 Then 'if data in column A is in DJIA list...
        iRow = iRow + 1 'go to next row
    Else
        xSht.Rows(iRow).EntireRow.Delete 'delete entire row
    End If
Loop Until xSht.Cells(iRow, 1).Value = "" 'loop until blank cell found in column A
RemoveNonDJIA = True
Exit Function
WeGottaGetOuttaThisPlace:
RemoveNonDJIA = False
End Function

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This will delete any lines on the current sheet that aren't in the list of DJIA. Beware, this code stops when it reaches a blank cell in column A, so if you have any rows that are blank in col A, it'll stop too soon, unless you change the code to only stop when columns A and C are blank, or whatever combo works for your data. If you wish to run it on all sheets at once, use the following subroutine instead of "RunRemoval": &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Sub RunAllRemovals()
Dim IsComplete As Boolean, IsGood As Boolean, xSht As Worksheet
IsGood = True

For Each xSht In ActiveWorkbook.Sheets
    IsComplete = RemoveNonDJIA(xSht) 'Run removal function on each sheet
    If IsComplete = False Then IsGood = False
Next

If IsGood = True Then 'if all ran OK...
    MsgBox "Everything looks kosher!"
Else
    MsgBox "Something's gone Pete Tong!"
End If
End Sub

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps, &lt;br /&gt;
Dai&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422217/422289/ReadMessage.aspx#422289</guid>
      <pubDate>Wed, 09 Mar 2011 04:00:52 -0700</pubDate>
    </item>
    <item>
      <title>Re: okay beginner here who needs help</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/421769/422151/ReadMessage.aspx#422151</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/MS-DOS/421769/422151/ReadMessage.aspx#422151"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/MS-DOS/Board.aspx"&gt;MS-DOS&lt;/a&gt; forum.&lt;/p&gt;You probably have a solution by now but for anybody who comes across this page in a search, the answer is quite simple: &lt;br /&gt;
&lt;br /&gt;
del *1*.* &lt;br /&gt;
(In your example: del C:\1161_DataFiles\DOS\*1*.*)&lt;br /&gt;
&lt;br /&gt;
will delete any files with a 1 in the name, to delete folders too, you would simply need: &lt;br /&gt;
&lt;br /&gt;
del *1*&lt;br /&gt;
&lt;br /&gt;
For more on DOS commands this site is pretty good: &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.computerhope.com/msdos.htm"&gt;http://www.computerhope.com/msdos.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
HTH&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/421769/422151/ReadMessage.aspx#422151</guid>
      <pubDate>Thu, 03 Mar 2011 09:10:47 -0700</pubDate>
    </item>
    <item>
      <title>Re: Needs help on basics of windows programming.</title>
      <link>http://www.programmersheaven.com/mb/windows/422064/422150/ReadMessage.aspx#422150</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/windows/422064/422150/ReadMessage.aspx#422150"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/windows/Board.aspx"&gt;Windows programming&lt;/a&gt; forum.&lt;/p&gt;As with anything, there are multiple solutions so I'll suggest just one. I would think your best option is to use a .NET language, C# or VB, both similar, C# is slightly better but VB is slightly easier. So pick one and download the applicable language from the Visual Studio Express downloads page: &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.microsoft.com/express/Downloads/Download-2010.aspx"&gt;http://www.microsoft.com/express/Downloads/Download-2010.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once you have that, create a simple app with a FileSystemWatcher in it. This is essentially a function to watch a file and when a change occurs to it, it will do whatever you've programmed it to do, in this case take a copy of the file whenever it is changed. More informative info on the FileSystemWatcher class here: &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.eggheadcafe.com/tutorials/aspnet/fd3891ed-db38-4149-83a2-95a3a49868b5/how-to-use-filesystemwatc.aspx"&gt;http://www.eggheadcafe.com/tutorials/aspnet/fd3891ed-db38-4149-83a2-95a3a49868b5/how-to-use-filesystemwatc.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps, Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/422064/422150/ReadMessage.aspx#422150</guid>
      <pubDate>Thu, 03 Mar 2011 09:02:25 -0700</pubDate>
    </item>
    <item>
      <title>Re: How to Change the Value in One Cell Based on Value in Another Cell</title>
      <link>http://www.programmersheaven.com/mb/VB_Beginner/409235/409295/ReadMessage.aspx#409295</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VB_Beginner/409235/409295/ReadMessage.aspx#409295"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VB_Beginner/Board.aspx"&gt;Beginner VB&lt;/a&gt; forum.&lt;/p&gt;Hi, you had the right idea with =IF(F4 &amp;gt; 49,100,200) only you enter that directly into the cell, not use conditional formatting, that feature is for changing the cell's format, bold, underline, borders, colours etc. Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VB_Beginner/409235/409295/ReadMessage.aspx#409295</guid>
      <pubDate>Sat, 14 Nov 2009 11:31:48 -0700</pubDate>
    </item>
    <item>
      <title>Re: Writing an SQL Query</title>
      <link>http://www.programmersheaven.com/mb/mysql/408924/408990/ReadMessage.aspx#408990</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/mysql/408924/408990/ReadMessage.aspx#408990"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/mysql/Board.aspx"&gt;MySQL&lt;/a&gt; forum.&lt;/p&gt;SELECT First Name, Surname, Sex, FROM NameOfTable WHERE Age &amp;gt; 25 AND Position = 'Technician'&lt;br /&gt;
&lt;br /&gt;
Obviously change NameOfTable to the actual table name, if you wanna be fancy you could add at the end:&lt;br /&gt;
&lt;br /&gt;
ORDER BY Age Asc&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
ORDER BY Age Desc&lt;br /&gt;
&lt;br /&gt;
To sort it by age, ascending or descending, or you could sort it by Surname or whatever. Dai&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/mysql/408924/408990/ReadMessage.aspx#408990</guid>
      <pubDate>Mon, 09 Nov 2009 14:40:28 -0700</pubDate>
    </item>
    <item>
      <title>Re: Plz help me...</title>
      <link>http://www.programmersheaven.com/mb/VB_Beginner/407144/407969/ReadMessage.aspx#407969</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VB_Beginner/407144/407969/ReadMessage.aspx#407969"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VB_Beginner/Board.aspx"&gt;Beginner VB&lt;/a&gt; forum.&lt;/p&gt;Don't log on often so I'm probably too late, but if you still need help then use something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;        Dim EndNum As Double 'The last number to add (user's input)
        Dim MyNum As Double 'Number to increase and add to total
        Dim TotalNum As Double 'Total sum

        On Error GoTo Chamone 'Exits if no number or a letter is typed
        EndNum = InputBox("Enter a postive integer value.", "Input Needed", "10") 'Gets user input number
        TotalNum = 0 'The sum, starts at 0
        MyNum = 1 'Start at 1
        Do 'Begin Loop
            TotalNum += MyNum 'Add the current number to the total
            MyNum += 1 'Increase the current number by one
        Loop Until MyNum &amp;gt; EndNum 'End loop when number to add is greater than input number
        MsgBox("The sum of the numbers 1 through " &amp;amp; EndNum &amp;amp; " is " &amp;amp; TotalNum.ToString())
        Exit Sub 'If successful, exits here
Chamone:  'Label used for when input is empty or invalid (letters typed etc.)
        MsgBox("Error, please type a valid number")
    End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I suspect your problem was because you were using a string to get the input number, maybe not, doesn't matter, I know this code works. Dai.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VB_Beginner/407144/407969/ReadMessage.aspx#407969</guid>
      <pubDate>Mon, 19 Oct 2009 13:14:06 -0700</pubDate>
    </item>
    <item>
      <title>Re: start /wait does not wait for process to finish</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/395472/395491/ReadMessage.aspx#395491</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/MS-DOS/395472/395491/ReadMessage.aspx#395491"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/MS-DOS/Board.aspx"&gt;MS-DOS&lt;/a&gt; forum.&lt;/p&gt;I know that in XP (not sure about vista) DOS does not support the wait function on 32-bit win apps, only on 16-bit, so you'll have to find a workaround. My suggestion would be to create a loop to see if any new files are created after running MySQL and use that as the trigger, or if running MySQL uses up specific ports you could use the net send command to see once they have finished using them. Hopefully you can think of a better method. Hope this helps, Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/395472/395491/ReadMessage.aspx#395491</guid>
      <pubDate>Fri, 21 Aug 2009 11:51:05 -0700</pubDate>
    </item>
    <item>
      <title>Re: Calendar issues???</title>
      <link>http://www.programmersheaven.com/mb/general/395302/395338/ReadMessage.aspx#395338</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/general/395302/395338/ReadMessage.aspx#395338"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/general/Board.aspx"&gt;General programming&lt;/a&gt; forum.&lt;/p&gt;Hi Kenny, I'm using XP SP2, I used Firefox(V3), Google Chrome(V2) and IE(V6), all rendered fine, when clicking on calendar dates nothing happened in Chrome or IE, is it supposed to? Firefox started transferring data but ultimately nothing happened. HTH, Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/general/395302/395338/ReadMessage.aspx#395338</guid>
      <pubDate>Wed, 19 Aug 2009 06:20:30 -0700</pubDate>
    </item>
    <item>
      <title>Re: VB text into textbox</title>
      <link>http://www.programmersheaven.com/mb/VBasic/395066/395121/ReadMessage.aspx#395121</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBasic/395066/395121/ReadMessage.aspx#395121"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBasic/Board.aspx"&gt;Visual Basic&lt;/a&gt; forum.&lt;/p&gt;Sorry, been a while since using classic VB, guess it doesn't support that method. OK, instead of:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
text1.Text += a &amp;amp; " * " &amp;amp; b &amp;amp; " = " &amp;amp; a * b
&lt;/pre&gt;&lt;br /&gt;
Use:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
text1.Text = text1.Text &amp;amp; a &amp;amp; " * " &amp;amp; b &amp;amp; " = " &amp;amp; a * b
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
It is essentially the same thing, I just normally do it the first way (I'm a .NET programmer if you hadn't guessed) as it's shorter and neater. Try that, should solve your problem, let me know if it doesn't. Dai. &lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/395066/395121/ReadMessage.aspx#395121</guid>
      <pubDate>Fri, 14 Aug 2009 06:51:16 -0700</pubDate>
    </item>
    <item>
      <title>VB text into textbox</title>
      <link>http://www.programmersheaven.com/mb/VBasic/395066/395068/ReadMessage.aspx#395068</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/VBasic/395066/395068/ReadMessage.aspx#395068"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/VBasic/Board.aspx"&gt;Visual Basic&lt;/a&gt; forum.&lt;/p&gt;Hi Bob, you need to refer to the textbox itself, say it's called "TextBox1", then your code would be:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
TextBox1.text = "My text here"
&lt;/pre&gt;&lt;br /&gt;
As you're using a loop I'm guessing you want to append the text each time, so you would need to change your line of:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Print a &amp;amp; " * " &amp;amp; b &amp;amp; " = " &amp;amp; a * b
&lt;/pre&gt;&lt;br /&gt;
To:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
TextBox1.text += a &amp;amp; " * " &amp;amp; b &amp;amp; " = " &amp;amp; a * b
&lt;/pre&gt;&lt;br /&gt;
It is important to remember the plus sign before the equals sign, as otherwise you'll just overwrite it. Hope this helps, Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/395066/395068/ReadMessage.aspx#395068</guid>
      <pubDate>Thu, 13 Aug 2009 11:07:41 -0700</pubDate>
    </item>
    <item>
      <title>Re: DAI IT'S REALLY MAKES ME ANGER</title>
      <link>http://www.programmersheaven.com/mb/csharp/394637/395067/ReadMessage.aspx#395067</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/394637/395067/ReadMessage.aspx#395067"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Hi, sorry it took so long for a reply, had to wipe pc and re-install everything. To overcome this problem, you need to simply split the string in 2 and add the text in right place. Here's the modified bits of code: &lt;br /&gt;
&lt;br /&gt;
First add these public variables:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
    public partial class Form1 : Form
    {
        string str1;
        string str2;
        int CursPos;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Then change next part to:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {

            if (textBox1.SelectionStart &amp;lt; textBox1.Text.Length)
            {
                str1 = textBox1.Text.Substring(0, textBox1.SelectionStart);
                str2 = textBox1.Text.Substring(textBox1.SelectionStart);
                CursPos = textBox1.SelectionStart +1;
            }
            else
            {
                str1 = textBox1.Text;
                str2 = "";
            }

            if (e.KeyChar == 'a')
            {
                awrite();

            }

            // Rest of code as normal until public void uwrite
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Then at public void uwrite:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
        public void uwrite()
        {
            char ye;
            string word;
            ye = '\u06CC';
            word = ye.ToString();
            textBox1.Text = str1 + word + str2;
            // int Tlen = textBox1.Text.Length;
            // textBox1.Text = textBox1.Text.Substring(0, Tlen - 1) + word;
            if (str2 == "")
            {
                textBox1.SelectionStart = textBox1.Text.Length;
            }
            else
            {
                textBox1.SelectionStart = CursPos;
            }
        }
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Apply above alteration to swrite, dwrite etc. You should find now that it works as intended, let me know either way. Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/394637/395067/ReadMessage.aspx#395067</guid>
      <pubDate>Thu, 13 Aug 2009 10:53:55 -0700</pubDate>
    </item>
    <item>
      <title>Re: suggestions for first moderately ambitious application?</title>
      <link>http://www.programmersheaven.com/mb/csharp/395026/395063/ReadMessage.aspx#395063</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/395026/395063/ReadMessage.aspx#395063"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Hi Bob. My suggestion would be to create a small game, that's what I do. Nothing too ambitious, something like build-a-lot or simcity is good, not too much moving (or detailed) graphics, mainly money calculations and doing game save/loads, gives quite a broad range of skills to practice. HTH, Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/395026/395063/ReadMessage.aspx#395063</guid>
      <pubDate>Thu, 13 Aug 2009 06:26:51 -0700</pubDate>
    </item>
    <item>
      <title>Re: List of Tables in VBA that hides deleted tables</title>
      <link>http://www.programmersheaven.com/mb/access/394740/395025/ReadMessage.aspx#395025</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/access/394740/395025/ReadMessage.aspx#395025"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/access/Board.aspx"&gt;Access&lt;/a&gt; forum.&lt;/p&gt;Like I said it's rather difficult to solve it as I can't see the problem myself. The only thing I can think of trying is to run an sql query instead hoping that somehow it won't pick up the deleted databases. Try adding another query, just like the one you already made but this time change strSQL value to:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt; strSQL = "SELECT Name FROM MSysObjects WHERE Type = 1" &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Run that query and see if it has old table names or not (it will have the system tables, but we can filter them out later), if it works perhaps we can work from that to fill the list. &lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/access/394740/395025/ReadMessage.aspx#395025</guid>
      <pubDate>Wed, 12 Aug 2009 13:57:17 -0700</pubDate>
    </item>
    <item>
      <title>Re: Please to remove this error</title>
      <link>http://www.programmersheaven.com/mb/html/394775/394797/ReadMessage.aspx#394797</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/html/394775/394797/ReadMessage.aspx#394797"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/html/Board.aspx"&gt;HTML &amp; WEB-Design&lt;/a&gt; forum.&lt;/p&gt;Ah well, fair enough, glad to hear it. Yeah I'd put money on it being something clic.net had control over by the sound of it, you'll probably get a cheeky reply saying "what bug?" from them later. &lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/html/394775/394797/ReadMessage.aspx#394797</guid>
      <pubDate>Sat, 08 Aug 2009 17:08:00 -0700</pubDate>
    </item>
    <item>
      <title>Re: List of Tables in VBA that hides deleted tables</title>
      <link>http://www.programmersheaven.com/mb/access/394740/394796/ReadMessage.aspx#394796</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/access/394740/394796/ReadMessage.aspx#394796"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/access/Board.aspx"&gt;Access&lt;/a&gt; forum.&lt;/p&gt;Hi breefc, try as I might I can't really re-create this problem, my databases never show deleted tables, so makes it hard to diagnose. However, it did sometimes display the tmp file of the table after deletion but this disappeared by the time I create a new table, I found it also deleted when I 'repaired' the database, so could you try seeing if that solves it. To do it:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Red;"&gt;Go to Tools &amp;gt; Database Utilities &amp;gt; Compact and Repair Database...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Really hope that works, if not send some more info if you can, preferably the database itself if possible (obviously empty all records first), or whatever code and screenshots you can. Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/access/394740/394796/ReadMessage.aspx#394796</guid>
      <pubDate>Sat, 08 Aug 2009 16:44:32 -0700</pubDate>
    </item>
    <item>
      <title>C# Keypress</title>
      <link>http://www.programmersheaven.com/mb/csharp/394637/394794/ReadMessage.aspx#394794</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/394637/394794/ReadMessage.aspx#394794"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Hi, sorry for the late reply, you've probably solved it by now but anyway, I got the same problem as you and fixed it by adding:&lt;br /&gt;
&lt;pre class="sourcecode"&gt; TextBox1.SelectionStart = TextBox1.Text.Length &lt;/pre&gt;&lt;br /&gt;
after the&lt;span style="color: Red;"&gt; textBox1.Text += word; &lt;/span&gt;line. &lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/394637/394794/ReadMessage.aspx#394794</guid>
      <pubDate>Sat, 08 Aug 2009 16:13:52 -0700</pubDate>
    </item>
    <item>
      <title>Re: Please to remove this error</title>
      <link>http://www.programmersheaven.com/mb/html/394775/394786/ReadMessage.aspx#394786</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/html/394775/394786/ReadMessage.aspx#394786"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/html/Board.aspx"&gt;HTML &amp; WEB-Design&lt;/a&gt; forum.&lt;/p&gt;Works fine in my browsers and I do not see any of the mentioned code, I hope this is a problem you've already resolved rather than a shameless plug for your website. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/html/394775/394786/ReadMessage.aspx#394786</guid>
      <pubDate>Sat, 08 Aug 2009 15:07:44 -0700</pubDate>
    </item>
    <item>
      <title>Re: Creating list box OF tables within database</title>
      <link>http://www.programmersheaven.com/mb/access/394600/394660/ReadMessage.aspx#394660</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/access/394600/394660/ReadMessage.aspx#394660"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/access/Board.aspx"&gt;Access&lt;/a&gt; forum.&lt;/p&gt;&lt;br /&gt;
OK, what you need to first do, is add your listbox in design view, choose the 2nd option, which is something like "I will enter my own values", then hit finish so you have an empty box. Just as a double-check, right-click and properties the listbox and ensure the "Row Source Type" is set to "Value List", only way it works. Now you need to add this code, hit alt + F11 to get the VBE window open, find the code for your form (on left-hand side look for name of your form e.g. Form_CampaignsForm, it may be in a subfolder) and paste this: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Private Sub Form_Load()

Dim db As Database, tbl As TableDef
Set db = CurrentDb

For Each tbl In db.TableDefs
    If Left$(tbl.Name, 4) &amp;lt;&amp;gt; "MSys" Then
        List50.RowSource = tbl.Name &amp;amp; "; " &amp;amp; List50.RowSource
    End If
Next

End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Simply change wherever it says List50 to the name of your ListBox! &lt;br /&gt;
&lt;br /&gt;
To explain how it works, we use the Form_Load event so it does this once form is opened, you may assign it to a button or other control if you prefer, but I see no reason to. &lt;br /&gt;
Next 2 lines just set db as current database and tbl as a table. &lt;br /&gt;
The 'For Each' Loop then goes through each table in database and if the name of the table does NOT begin with MSys, then it adds the table name to the listbox. &lt;br /&gt;
The reason for not including MSys tables is that these are system tables and so usually not wanted, just take out the if statement if you do wish to include them. &lt;br /&gt;
Only problem I've found is that it puts each name above the previous one, so your list ends up being Z - A instead of A - Z, but that's easily altered, just put them into an array or something first. &lt;br /&gt;
Use exact same method for comboboxes too. Hope this helps, let me know if you need any further guidance, Dai. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------&lt;br /&gt;
Do or do not, there is no try.  |&lt;br /&gt;
------------------------------------------</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/access/394600/394660/ReadMessage.aspx#394660</guid>
      <pubDate>Tue, 04 Aug 2009 08:19:48 -0700</pubDate>
    </item>
  </channel>
</rss>