﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Office Forum - Answered Threads, Microsoft Office Excel</title><description /><language>en-us</language><a10:link href="http://answers.microsoft.com/en-us/office/forum/excel" /><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2003-excel/blank-cell-being-seen-as-0-and-calculating/9db4695b-c925-471a-bf83-0fa0f560ae78</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2003-excel/blank-cell-being-seen-as-0-and-calculating/9db4695b-c925-471a-bf83-0fa0f560ae78</link><a10:author><a10:name>R71lima</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/f8b85b87-cb1f-408a-a390-055f1f8addca</a10:uri></a10:author><title>Blank cell being seen as "0" and calculating</title><description>
&lt;p&gt;In using the formula&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =--(1*D10=0%)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to reflect a return of 100% to objective for a "0" obtained actual against a ")" objective.&lt;/p&gt;
&lt;p&gt;Until the "0" is actually entered in the cell for the actual obtained, &amp;nbsp;there is a blank cell.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;How can I make sure the blank cell reference does not calculate as 100%&amp;nbsp;rather only when I add the "0", if that is what they received&amp;nbsp;for that month?&lt;/p&gt;
&lt;p&gt;The above formula is reading the blank cell as a "0" and returning a 100%.&amp;nbsp; How can I stop the blank cell from being seen as a "0" and further calculating on cells that I have not gotten to&amp;nbsp;yet to enter data?&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 15:33:15 Z</pubDate><a10:updated>2012-05-16T16:04:36Z</a10:updated><a10:contributor><a10:name>R71lima</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/f8b85b87-cb1f-408a-a390-055f1f8addca</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2003-excel/i-have-2-cells-but-i-only-want-one-to-display-at-a/5ab931a5-b05e-4bab-8e0d-782bb77486d3</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2003-excel/i-have-2-cells-but-i-only-want-one-to-display-at-a/5ab931a5-b05e-4bab-8e0d-782bb77486d3</link><a10:author><a10:name>GLENNPRIESTLEY</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/218ca981-29e7-4bcc-90a3-16d3ab441f42</a10:uri></a10:author><title>I have 2 cells, but I only want one to display at a time.</title><description>
&lt;p&gt;I am asking the question:&amp;nbsp; -&lt;/p&gt;
&lt;p&gt;1) What commission rate is being charged?&lt;/p&gt;
&lt;p&gt;2) Are you being charged a fixed fee?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is an answer box for each, but only 1 box should be populated (if they place answers in box boxes, it will provide the wrong answer).&lt;/p&gt;
&lt;p&gt;How do I set&amp;nbsp; a formula that deletes the entry in the other box, or ensures that only 1 box can be populated?&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 15:24:11 Z</pubDate><a10:updated>2012-05-16T16:44:24Z</a10:updated><a10:contributor><a10:name>GLENNPRIESTLEY</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/218ca981-29e7-4bcc-90a3-16d3ab441f42</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2003-excel/finding-percentiles/9090c232-01fc-4eb9-9d54-8389a7396650</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2003-excel/finding-percentiles/9090c232-01fc-4eb9-9d54-8389a7396650</link><a10:author><a10:name>ColbyJackson</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/444635fd-a183-4a3d-bcae-130b0519aa67</a10:uri></a10:author><title>Finding Percentiles</title><description>
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm trying to find the 20th and 80th percentile of an array of data.&lt;/p&gt;
&lt;p&gt;This chart is showing the counts for a spatial analysis, so ultimately the percentiles will be associated to the total counts for each objectID rather than the specific values of each column. So if the total of row 2 (ObjectID - 12) is 50000 then my percentile
 would be of that number. &lt;/p&gt;
&lt;p&gt;Now what&amp;nbsp;I want to do is get the 20th and 80th percentile for row 2 and 3 (There are many more rows in the actual data set) )but instead of it giving me the value of the percentile, I need the column heading (1, 2, 3, 4, 5)&amp;nbsp;that the percentile is within
 to be shown. It would be calculated in the column after total. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Example If row one has a 20th percentile of 24000 the value calculted would come back as 2.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ObjectID&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; Total&amp;nbsp; |&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;23456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;2345&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;34523&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;3454&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3452&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; SUM&amp;nbsp; |&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;24532&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;9856&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;12342&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;5674&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1234&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; SUM&amp;nbsp; |&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any Ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 15:07:45 Z</pubDate><a10:updated>2012-05-16T17:28:54Z</a10:updated><a10:contributor><a10:name>ColbyJackson</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/444635fd-a183-4a3d-bcae-130b0519aa67</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2003-excel/how-do-i-show-a-minimum-value-of-599-in-an-excel/7ea9bdea-1100-41f4-a6fe-74489c9b493a</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2003-excel/how-do-i-show-a-minimum-value-of-599-in-an-excel/7ea9bdea-1100-41f4-a6fe-74489c9b493a</link><a10:author><a10:name>GLENNPRIESTLEY</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/218ca981-29e7-4bcc-90a3-16d3ab441f42</a10:uri></a10:author><title>How do I show a minimum value of 599 in an Excel cell when the formula calculation equals less than 599</title><description>
&lt;p&gt;I am trying to set a formula that will default to 599 if the answer is less than 599.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i.e. &lt;/p&gt;
&lt;p&gt;Estate Agency commission is 1/2% on completion, but subject to a minimum of £599&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 15:03:37 Z</pubDate><a10:updated>2012-05-16T15:10:53Z</a10:updated><a10:contributor><a10:name>GLENNPRIESTLEY</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/218ca981-29e7-4bcc-90a3-16d3ab441f42</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2003-excel/can-i-create-a-formula-that-will-reflect-a-0/75650478-866e-4bee-9ffb-5eaab3beae0c</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2003-excel/can-i-create-a-formula-that-will-reflect-a-0/75650478-866e-4bee-9ffb-5eaab3beae0c</link><a10:author><a10:name>R71lima</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/f8b85b87-cb1f-408a-a390-055f1f8addca</a10:uri></a10:author><title>Can I create a formula that will reflect a 0 actual against a 0 objebctive as 100% to objective?</title><description>On the first three months of the year my staff has been given a &amp;quot;0&amp;quot; Objective to meet on sales in a specific area.&amp;nbsp; If they obtain a &amp;quot;0&amp;quot; as an actual, how can I make sure the % to objective is reflected as 100%?</description><pubDate>Wed, 16 May 2012 14:31:33 Z</pubDate><a10:updated>2012-05-16T15:09:00Z</a10:updated><a10:contributor><a10:name>R71lima</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/f8b85b87-cb1f-408a-a390-055f1f8addca</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/conditional-format-in-column-a-based-on-the-value/0bb2e0e8-d1a2-40b5-af2f-5c0dd3816715</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/conditional-format-in-column-a-based-on-the-value/0bb2e0e8-d1a2-40b5-af2f-5c0dd3816715</link><a10:author><a10:name>JWWA</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/687f1eea-b66a-4012-a4b2-01a13e92c4b1</a10:uri></a10:author><title>Conditional format in column A based on the value in column B.</title><description>
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think this might be quite easy! &lt;/p&gt;
&lt;p&gt;Id like to conditional format rows in column A based on the text in the corresponding row in coulmn B. For example if B is yes the highlight the same row in A. So John and Dave would be highlighted.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes&lt;/p&gt;
&lt;p&gt;Mike&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;No&lt;/p&gt;
&lt;p&gt;Dave&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes&lt;/p&gt;
&lt;p&gt;Ed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;No&lt;/p&gt;
&lt;p&gt;many thanks &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;x&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 14:28:47 Z</pubDate><a10:updated>2012-05-16T15:05:48Z</a10:updated><a10:contributor><a10:name>JWWA</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/687f1eea-b66a-4012-a4b2-01a13e92c4b1</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/vba-sorting-by-date/5acfeead-89de-4964-a166-47f9cc229cce</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/vba-sorting-by-date/5acfeead-89de-4964-a166-47f9cc229cce</link><a10:author><a10:name>fride360</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/3f3ecfca-d806-4735-a5c6-8d180916ef85</a10:uri></a10:author><title>vba sorting by date</title><description>
&lt;p&gt;I have a date column U13:U33&lt;/p&gt;
&lt;p&gt;and an event column W13:W33&lt;/p&gt;
&lt;p&gt;I would like some code that can sort by earliest date to latest date but not reference the sheet, just the range.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 14:22:22 Z</pubDate><a10:updated>2012-05-16T14:53:00Z</a10:updated><a10:contributor><a10:name>fride360</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/3f3ecfca-d806-4735-a5c6-8d180916ef85</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/sumif-and-dates/86d98881-5ad3-413b-a5a3-28754cd7fec7</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/sumif-and-dates/86d98881-5ad3-413b-a5a3-28754cd7fec7</link><a10:author><a10:name>Msulli2472</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/6eba86d4-478d-4ff5-a131-61075f36f6a7</a10:uri></a10:author><title>SUMIF and Dates</title><description>
&lt;p&gt;Please assume that my spreadsheet looks as follows:&lt;/p&gt;
&lt;p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;A&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;203&lt;/td&gt;
&lt;td&gt;01/12/12&lt;/td&gt;
&lt;td&gt;01/31/12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;02/01/12&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;


&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;77&lt;/td&gt;
&lt;td&gt;02/24/12&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;-5&lt;/td&gt;
&lt;td&gt;03/01/12&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;6&lt;/strong&gt;&lt;/td&gt;



&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;7&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;86&lt;/td&gt;


&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to write a formula in cell A7 using SUMIF. I want to sum the values in column A if there is a value in column B but not a value in column C. I have tried using ISBLANK but that doesn't work. I know this is simple but I am frustrated.&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 14:08:07 Z</pubDate><a10:updated>2012-05-16T14:41:10Z</a10:updated><a10:contributor><a10:name>Msulli2472</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/6eba86d4-478d-4ff5-a131-61075f36f6a7</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/formatting-cells-with-selectionchange/8bc6c692-7b88-4084-9fb9-733bb2f9d306</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/formatting-cells-with-selectionchange/8bc6c692-7b88-4084-9fb9-733bb2f9d306</link><a10:author><a10:name>fride360</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/3f3ecfca-d806-4735-a5c6-8d180916ef85</a10:uri></a10:author><title>Formatting cells with SelectionChange</title><description>
&lt;p&gt;I have the following code that works when I click in a cell.&amp;nbsp; My question is, how can I make it so when I click back out of that cell the formatting changes back?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Intersect(Target.Cells(1, 1), Sheet6.Range("Jan")) Is Nothing Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With Selection.Interior&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Pattern = xlSolid&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PatternColorIndex = xlAutomatic&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Color = 16737792&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .TintAndShade = 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PatternTintAndShade = 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; With Selection.Font&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ThemeColor = xlThemeColorDark1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .TintAndShade = 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
End Sub&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 13:07:07 Z</pubDate><a10:updated>2012-05-16T13:44:55Z</a10:updated><a10:contributor><a10:name>fride360</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/3f3ecfca-d806-4735-a5c6-8d180916ef85</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/xlsm-macro-code-stopped-working/47ba4c6f-6df3-475d-a175-348f4460f96e</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/xlsm-macro-code-stopped-working/47ba4c6f-6df3-475d-a175-348f4460f96e</link><a10:author><a10:name>Canon1013</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/a6731e1d-79e6-49ca-8cb1-b33c88834e85</a10:uri></a10:author><title>.xlsm macro code stopped working</title><description>
&lt;p&gt;I have an .xlsm file that all of a sudden stopped working.&lt;/p&gt;
&lt;p&gt;The code is:&lt;/p&gt;
&lt;p&gt;Private Sub Workbook_Open()&lt;/p&gt;
&lt;p&gt;Set r = Sheets("ORDER").Range("J3")&lt;/p&gt;
&lt;p&gt;r.Value = r.Value + 1&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;It is suppose to change a number everytime the workbook is opened.&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 11:08:43 Z</pubDate><a10:updated>2012-05-16T11:52:36Z</a10:updated><a10:contributor><a10:name>Canon1013</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/a6731e1d-79e6-49ca-8cb1-b33c88834e85</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/my-cells-do-not-add-up-for-example-p11-has-800-and/71528fd9-98de-4347-840c-233cab5d1cfd</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/my-cells-do-not-add-up-for-example-p11-has-800-and/71528fd9-98de-4347-840c-233cab5d1cfd</link><a10:author><a10:name>Andy1951</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/99b62cef-58e5-41fe-b776-dfab1ca90a19</a10:uri></a10:author><title>My cells do not add up: For example P11 has 8.00 and R11 has 48, the sum should be 384 but it comes up with 383.76. Any idea why and what I can do to stop this happening.</title><description>
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1.89&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;0.38&lt;/td&gt;
&lt;td&gt;2.27&lt;/td&gt;
&lt;td&gt;2.84&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;5.16&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;8.00&lt;/td&gt;
&lt;td&gt;&lt;u&gt;383.76&lt;/u&gt;&lt;/td&gt;
&lt;td&gt;5.73&lt;/td&gt;
&lt;td&gt;48&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><pubDate>Wed, 16 May 2012 08:59:29 Z</pubDate><a10:updated>2012-05-16T19:25:18Z</a10:updated><a10:contributor><a10:name>Andy1951</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/99b62cef-58e5-41fe-b776-dfab1ca90a19</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/allow-only-one-cell-to-be-highlighted-in-stead-of/17d47835-0c78-49e6-8469-997a6d784ad0</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/allow-only-one-cell-to-be-highlighted-in-stead-of/17d47835-0c78-49e6-8469-997a6d784ad0</link><a10:author><a10:name>Fred Hayward</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/114c10e5-2da9-444c-8a40-fb6362966160</a10:uri></a10:author><title>Allow only one cell to be highlighted in stead of two</title><description>When I highlight a single cell multiple cells light up.&amp;nbsp; That means I deleat all or add to more than one place and formulas have more than one cell.&amp;nbsp; How do I get it to light up only one?</description><pubDate>Wed, 16 May 2012 08:57:04 Z</pubDate><a10:updated>2012-05-16T17:57:15Z</a10:updated><a10:contributor><a10:name>Fred Hayward</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/114c10e5-2da9-444c-8a40-fb6362966160</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/use-vba-to-delete-sheets-except-defined-sheets/add69763-d6df-43b1-a752-4cbd9f5c2646</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/use-vba-to-delete-sheets-except-defined-sheets/add69763-d6df-43b1-a752-4cbd9f5c2646</link><a10:author><a10:name>Elton Law</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/ed70ac49-98e6-4d15-9c38-375dd3a2e175</a10:uri></a10:author><title>Use VBA to delete sheets except defined sheets</title><description>
&lt;p&gt;Dear Experts,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some of the marcos will have "add sheet" feature.&lt;/p&gt;
&lt;p&gt;May I know how to delete sheets except sheet1, sheet2 and sheet3.... the rest can be removed with one click ....&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Elton&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 04:46:49 Z</pubDate><a10:updated>2012-05-16T08:38:13Z</a10:updated><a10:contributor><a10:name>Elton Law</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/ed70ac49-98e6-4d15-9c38-375dd3a2e175</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/use-vba-to-close-all-files/c82c941a-ffbb-4396-9b51-aeaf76055b58</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/use-vba-to-close-all-files/c82c941a-ffbb-4396-9b51-aeaf76055b58</link><a10:author><a10:name>Elton Law</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/ed70ac49-98e6-4d15-9c38-375dd3a2e175</a10:uri></a10:author><title>Use VBA to Close all files</title><description>
&lt;p&gt;Dear Expert,&lt;/p&gt;
&lt;p&gt;Have learnt from the forum that open all files from a folder.&lt;/p&gt;
&lt;p&gt;May I know how to close all outstanding Excel files except the file whom run this marco to close others?&lt;/p&gt;
&lt;p&gt;Would the script to close without save and to close with save be very different?&lt;/p&gt;
&lt;p&gt;Thanks so much for help.&lt;/p&gt;
&lt;p&gt;Elton&lt;/p&gt;
</description><pubDate>Wed, 16 May 2012 04:43:05 Z</pubDate><a10:updated>2012-05-16T06:28:27Z</a10:updated><a10:contributor><a10:name>Elton Law</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/ed70ac49-98e6-4d15-9c38-375dd3a2e175</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/how-to-convert-limited-text-to-excel-spreadsheet/b2bdabf2-6cf1-46d2-90c1-c869fdcaf078</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/how-to-convert-limited-text-to-excel-spreadsheet/b2bdabf2-6cf1-46d2-90c1-c869fdcaf078</link><a10:author><a10:name>Margaret Ruth</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/a49e8e50-98ec-47cc-acfb-4247ed17b732</a10:uri></a10:author><title>How to convert limited text to excel spreadsheet</title><description>I had to save an excel file as delimited text - now I want to convert it back to excel.&amp;nbsp; I have done this in the past but can't remember how now.&lt;br /&gt;
Thank you&lt;br /&gt;
</description><pubDate>Wed, 16 May 2012 02:47:07 Z</pubDate><a10:updated>2012-05-16T12:26:03Z</a10:updated><a10:contributor><a10:name>Margaret Ruth</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/a49e8e50-98ec-47cc-acfb-4247ed17b732</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/when-i-open-an-excel-file-from-explorer-by/cb358a24-d04d-4898-8140-8940c189aeb7</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/when-i-open-an-excel-file-from-explorer-by/cb358a24-d04d-4898-8140-8940c189aeb7</link><a10:author><a10:name>FlipSA</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/d051b72e-3246-4e05-a04e-686f5f07cfd3</a10:uri></a10:author><title>When I open an Excel file from Explorer by clicking on the file, two windows open: the spreadsheet AND a second Excel window, no spreadsheet open--just a blank Excel Window</title><description>&lt;span&gt;(Excel 2010, Windows 7, 64bit). When I open an existing Excel file from Explorer by clicking on the file, two windows open: the spreadsheet AND a second Microsoft Excel window (no spreadsheet open--just a blank Excel Window).
&lt;br /&gt;
&lt;br /&gt;
When I open the Excel program directly from within Excel, I get the single window (Book1). But opening Excel from a previously created file always gets me two windows.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
</description><pubDate>Wed, 16 May 2012 01:13:08 Z</pubDate><a10:updated>2012-05-16T14:36:14Z</a10:updated><a10:contributor><a10:name>FlipSA</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/d051b72e-3246-4e05-a04e-686f5f07cfd3</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/modify-conditional-formatting-formula-with-another/273ac933-0135-4ac4-a6fc-4141fbc6d745</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/modify-conditional-formatting-formula-with-another/273ac933-0135-4ac4-a6fc-4141fbc6d745</link><a10:author><a10:name>Rene29</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/7838b8b8-6a3b-4923-8604-326696f901fe</a10:uri></a10:author><title>modify conditional formatting formula with another variable</title><description>=AND($N9=U$7,$N9=U$7)&lt;br /&gt;
=AND($O9=U$7,$O9=U$7)&lt;br /&gt;
=AND($N9&amp;lt;=U$7,$O9&amp;gt;=U$7) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
u7 date&lt;br /&gt;
n9 date&lt;br /&gt;
o9 date&lt;br /&gt;
&lt;br /&gt;
i9 date&lt;br /&gt;
j9 date&lt;br /&gt;
&lt;br /&gt;
I had assistance with the above formulas a while back and now I'm trying to modify it to NOT to format if BOTH I9 and J9 are empty.&lt;br /&gt;
&lt;br /&gt;
Thanks for your help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</description><pubDate>Tue, 15 May 2012 19:25:28 Z</pubDate><a10:updated>2012-05-15T21:53:23Z</a10:updated><a10:contributor><a10:name>Rene29</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/7838b8b8-6a3b-4923-8604-326696f901fe</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/horizontally-fill-adjacent-cells-by-double/31311a5a-d7f5-41ca-94c3-9752668a3a3e</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/horizontally-fill-adjacent-cells-by-double/31311a5a-d7f5-41ca-94c3-9752668a3a3e</link><a10:author><a10:name>Paul Domaskis</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/0b8e321e-067a-42f4-8ff0-23c9711a7170</a10:uri></a10:author><title>horizontally fill adjacent cells by double-clicking auto-increment handle?</title><description>I have a row of data in (say) B2:Z2.&amp;nbsp; I replace B2 with 102 and C2 with 103.&amp;nbsp; If I select B2:C2, I have an auto-increment handle at the lower right corner.&amp;nbsp; I thought&amp;nbsp;that I&amp;nbsp;could double-click this handle to fill the entire row with 102, 103, 104, ...&amp;nbsp;&amp;nbsp;
 At least, that's how it would work if the sequence ran vertically downward. Unfortunately, I haven't found a way to get this behaviour for horizontally exending the auto-increment for a very long row.&amp;nbsp; *Is* this double-click filling only available for vertical
 auto-incrementation?</description><pubDate>Tue, 15 May 2012 19:21:23 Z</pubDate><a10:updated>2012-05-15T20:33:40Z</a10:updated><a10:contributor><a10:name>Paul Domaskis</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/0b8e321e-067a-42f4-8ff0-23c9711a7170</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2003-excel/time-format/4f0498a6-092d-4340-ac9d-54f2bc300267</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2003-excel/time-format/4f0498a6-092d-4340-ac9d-54f2bc300267</link><a10:author><a10:name>Jim Thomlinson</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/89d2ae26-a7b7-41cb-871a-682c486278c4</a10:uri></a10:author><title>Time Format</title><description>I am trying to format a time with the minutes first and then the hours so I created a custom format of mm hh. No matter what the minutes portion always shows up as 1. So for instance 8:15 shows up as 01 08 when it should be 15 08. I can work around it
 but I was just wondering if anyone had an expanation of why it is converting the minutes to 1.</description><pubDate>Tue, 15 May 2012 19:16:56 Z</pubDate><a10:updated>2012-05-15T20:02:05Z</a10:updated><a10:contributor><a10:name>Jim Thomlinson</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/89d2ae26-a7b7-41cb-871a-682c486278c4</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/zip-codes-on-existing-mappoint-2009-map/884418c8-cf19-42ba-8d20-c2f202f3c330</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/zip-codes-on-existing-mappoint-2009-map/884418c8-cf19-42ba-8d20-c2f202f3c330</link><a10:author><a10:name>DRLAFON</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/02ce1010-1c1c-4a92-bf1f-b9034dd13e40</a10:uri></a10:author><title>ZIP CODES on existing mappoint 2009 map</title><description>I created a County Map in MapPoint 2009. I know this program has access to all the zip codes in the counties. How can I get the Zip Codes to show on the map? Thanks
&lt;div&gt;Darin&lt;/div&gt;
</description><pubDate>Tue, 15 May 2012 18:18:26 Z</pubDate><a10:updated>2012-05-16T11:54:56Z</a10:updated><a10:contributor><a10:name>DRLAFON</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/02ce1010-1c1c-4a92-bf1f-b9034dd13e40</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/macro-continues-to-copy-to-another-range-and/b8e82933-cbdc-4fc5-9794-e52d89ed043c</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/macro-continues-to-copy-to-another-range-and/b8e82933-cbdc-4fc5-9794-e52d89ed043c</link><a10:author><a10:name>Anne Troy</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/db7e99ac-bfc2-407e-8202-a1414e2891f8</a10:uri></a10:author><title>Macro Continues to Copy to Another range and delete dupes</title><description>I use this line to copy data from one worksheet to another. Works great. &lt;br /&gt;
&lt;br /&gt;
rng is a named range on another worksheet&lt;br /&gt;
&lt;br /&gt;
Application.ScreenUpdating = False&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; rng.Copy Destination:=Sheets("CreateChoiceSets").Range("M" &amp;amp; Rows.Count).End(xlUp).Offset(1)&lt;br /&gt;
&lt;br /&gt;
I use this macro on multiple named ranges and they're always 2 columns of data, differing in the number of rows.&lt;br /&gt;
&lt;br /&gt;
Now, what I need to do is ALSO paste the first column of this named range to A2 of this same worksheet, AND paste the second column of this named range to E2 of this same worksheet. And I need to remove any duplicates that I might have copied over. (The duplicates
 DO belong when I paste with the code above, but NOT in the step of pasting into A2 and E2.&lt;br /&gt;
&lt;br /&gt;
An entire macro currently is as follows, and I have about 10 different ones, which I run based on the user's button-click.&lt;br /&gt;
&lt;br /&gt;
Sub AddPreps()&lt;br /&gt;
Dim rng As Range&lt;br /&gt;
Set rng = Range("addprep")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ScreenUpdating = False&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; rng.Copy Destination:=Sheets("CreateChoiceSets").Range("M" &amp;amp; Rows.Count).End(xlUp).Offset(1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.ScreenUpdating = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
As usual, I will grant great favors in heaven to anyone who can help. :)&lt;br /&gt;
&lt;br /&gt;
Thank you thank you thank you and I swear this project is almost finished!&lt;br /&gt;
</description><pubDate>Tue, 15 May 2012 18:13:46 Z</pubDate><a10:updated>2012-05-15T21:48:04Z</a10:updated><a10:contributor><a10:name>Anne Troy</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/db7e99ac-bfc2-407e-8202-a1414e2891f8</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/combine-formula/ed637074-c8c5-4f32-9665-7d59f0005804</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/combine-formula/ed637074-c8c5-4f32-9665-7d59f0005804</link><a10:author><a10:name>WashingtonSquarePK</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/6b0b4ad3-20ed-45df-9a9e-b1dd408aef0f</a10:uri></a10:author><title>combine formula</title><description>
&lt;p&gt;Hello &lt;/p&gt;
&lt;p&gt;I'm trying to combine 2&amp;nbsp; formulas&amp;nbsp; into 1 &lt;/p&gt;
&lt;p&gt;I presently have&amp;nbsp; extra columns in the woksheet&amp;nbsp; and one column with the final result&lt;/p&gt;
&lt;p&gt;Scenario&lt;/p&gt;
&lt;p&gt;Column L&lt;span&gt;&amp;nbsp; &lt;/span&gt;Total Hours&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;174:00:00&lt;/p&gt;
&lt;p&gt;Column M&lt;span&gt;&amp;nbsp; &lt;/span&gt;training &lt;span&gt;&amp;nbsp;&lt;/span&gt;1:00&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Column N consulting 2:00&lt;/p&gt;
&lt;p&gt;Column O&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;formula &lt;span&gt;&amp;nbsp;&lt;/span&gt;is column M less column N&amp;nbsp;= 171:00:00
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Column P&lt;span&gt;&amp;nbsp; &lt;/span&gt;time on phone &lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;8:00:00&lt;/p&gt;
&lt;p&gt;Column q&lt;span&gt;&amp;nbsp; &lt;/span&gt;available time &lt;span&gt;&amp;nbsp;&lt;/span&gt;= 13:00:00&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Column R&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;formula &lt;span&gt;&amp;nbsp;column&amp;nbsp;&lt;/span&gt;P plus&amp;nbsp;column Q&amp;nbsp; 21:00:00&lt;/p&gt;
&lt;p&gt;Colum S&amp;nbsp; formula is&amp;nbsp; column r/ column n - 12:28%&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Is &lt;span&gt;&amp;nbsp;&lt;/span&gt;there a way to combine these 2 formulas into one.
&lt;/p&gt;
&lt;p&gt;I have tried several combinations but I get the wrong &lt;span&gt;&amp;nbsp;&lt;/span&gt;answer .&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 18:03:32 Z</pubDate><a10:updated>2012-05-15T19:26:02Z</a10:updated><a10:contributor><a10:name>WashingtonSquarePK</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/6b0b4ad3-20ed-45df-9a9e-b1dd408aef0f</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/setting-variable-as-this-sheet/7d542575-221b-404e-8fe3-43eae046745a</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/setting-variable-as-this-sheet/7d542575-221b-404e-8fe3-43eae046745a</link><a10:author><a10:name>JordDJ</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/8e4fa718-01cf-4569-9b4e-5a342f6ff7f5</a10:uri></a10:author><title>Setting variable as "This Sheet"</title><description>
&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;Firstly, I apologize. I am an extreme novice when it comes to VBA for excel. I am researching, and learning, but still have a long way to go. So please bear with me.&lt;/p&gt;
&lt;p&gt;I am currently on a project, and have stumbled onto a small problem. I have a worksheet that will contain many sheets, easily over 100 when completed. The 1 sheet (Called “Roster”) contains a list of classes, and contains a list of employees. Next to each
 class is a button, this button take the user to a sheet that contains information about the class. On the sheet is a button that will take the user back to the Roster sheet.&lt;/p&gt;
&lt;p&gt;My problem occurs with my personal OCD issues :P I cant stand the site of so many sheets cluttering the bottom of my worksheet. So to remedy this issue, I have made all the sheets other than Roster, not visible. The button that takes the user to the class
 sheets is as follows:&lt;/p&gt;
&lt;p&gt;(TM81 is the “class code” for one of the classes. It’s a much shorter name than the actual class name. Each class has a unique “class code”)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets("TM81").Visible = True&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets("TM81").Select&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Sheets("Class Roster").Visible = False&lt;/p&gt;
&lt;p&gt;This works fine, it takes the user to the class’ sheet, and makes the roster sheet not visible. Exactly what I want.
&lt;/p&gt;
&lt;p&gt;The problem arises in my button that returns the user to the Roster. I can make it so the Roster sheet becomes visible, and the user is taken there. I however don’t know the proper “verbage” to make the original sheet not visible. I can manually put each
 previous sheets name in the code to make it not visible again. This will be extremely tedious as there are potentially many, many classes. This is what I currently would have to do for every class page individually.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sheets("Class Roster").Visible = True&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets("Class roster").Select&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets("TM81").Visible = False&lt;/p&gt;
&lt;p&gt;I don’t want to have to type this for every class. My idea would be something as follows:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;DIM CurrentSheet AS (im not sure what a “sheet” is stored in)
&lt;/p&gt;
&lt;p&gt;(I forget the proper code for the following, sorry) &lt;/p&gt;
&lt;p&gt;Then set CurrentSheet as (Some kind of “This Sheet” function to set this variable to equal the sheet that the user is currently viewing)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets(“Class Roster”).Visible = True&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets(“Class Roster”).Select&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Sheets(&lt;i&gt;The variable &lt;/i&gt;“CurrentSheet”).Visible = False&lt;/p&gt;
&lt;p&gt;The idea here is to make a bit of code that I can set as the macro to a button on each of the class sheets, instead of having to write a new line for each one with that sheets name in it.&lt;/p&gt;
&lt;p&gt;Thanks for reading, and any help available.&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 17:54:10 Z</pubDate><a10:updated>2012-05-15T19:31:32Z</a10:updated><a10:contributor><a10:name>JordDJ</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/8e4fa718-01cf-4569-9b4e-5a342f6ff7f5</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/how-can-i-add-date-to-excel-without-using-now/7012d1c7-3089-4637-922f-f485bedd6544</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/how-can-i-add-date-to-excel-without-using-now/7012d1c7-3089-4637-922f-f485bedd6544</link><a10:author><a10:name>DonMurray</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/fd2ebab8-f830-4df7-b26d-f09b15507bfa</a10:uri></a10:author><title>How can I add date to excel without using =Now()</title><description>
&lt;p&gt;Whould like to have the current date inserted into cell E5 based on entering a value in G10.&lt;/p&gt;
&lt;p&gt;Can this be done without me entering =NOW().&amp;nbsp; This causes the sheet to change dates when I reopen.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Sub Workbook_Open() '&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (Range("g10").Value = "") Or (Len(Range("g10")) = "") Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Range("g10").Value = InputBox("Enter Unit Number:&amp;nbsp; IE: 4369")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Range("C16").Select&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Don Murray&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 15:40:50 Z</pubDate><a10:updated>2012-05-16T15:22:27Z</a10:updated><a10:contributor><a10:name>DonMurray</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/fd2ebab8-f830-4df7-b26d-f09b15507bfa</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/sum-formula-that-ignores-blank-cells-when-1-or/d14af8d2-918f-46bc-9589-015d9357dcc1</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/sum-formula-that-ignores-blank-cells-when-1-or/d14af8d2-918f-46bc-9589-015d9357dcc1</link><a10:author><a10:name>MaryOD</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/80c8f9fb-8143-4bb5-8e38-0ad659fadb35</a10:uri></a10:author><title>Sum formula that ignores blank cells when 1 or more of them would have been errors</title><description>
&lt;p&gt;&lt;span&gt;Hello.&lt;/span&gt;&lt;/p&gt;
&lt;span&gt;&lt;span&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;I would like a sum formula that adds the values of 12 cells but ignores any of those that are&amp;nbsp;'blank' (forced to be blank per ISERROR formulae). I'd like the formula to add up, say, the 11 or 10 or even 5 non-blank ones...and the # of non-blank
 ones could vary from day to day.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Cell E5 is a formula. It returns a value if its predecessors contain certain values, else it returns a blank cell, and I want blank cells if either of 2 conditions is met: if the cell is for a future day, or if the formula would have returned
 a zero. This is good because I want my external line chart&amp;nbsp;#s to NOT show a bunch of zeros for future days and to NOT spike up &amp;amp; down if a completed day truly had zero dollars (i.e., I want the chart line to stop &amp;amp; start as it moves right along the axis).
 This part of my formula works perfectly.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =IF($A5&amp;gt;'Budget'!$B$2,"",IF(ISERROR('Data'!I5),"",(('Data'!I5))))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The formula in Cell E5&amp;nbsp;is copied down the rows for each workday of the month.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Then, Cell EO5 is a formula.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span&gt;=E5+N5+W5+AF5+AZ5+BI5+BR5+CA5+CJ5+CS5+DB5+DK5&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The formula is copied down for each workday of the month.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;The problem is that if E5 is blank, then EO5 returns an error #VALUE. If N5 is blank, same thing. If BR5 and DK5 are blank, same thing.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;I would like a sum formula that ignores any and all&amp;nbsp;'blank' cells and adds up the rest of the cells. Hoping someone can help. Thank you.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 15:30:36 Z</pubDate><a10:updated>2012-05-15T18:08:47Z</a10:updated><a10:contributor><a10:name>MaryOD</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/80c8f9fb-8143-4bb5-8e38-0ad659fadb35</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/can-i-reference-a-workbook-scoped-named-range-in/49fd70e7-a11a-4fa7-9842-8fcf0e8c6224</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/can-i-reference-a-workbook-scoped-named-range-in/49fd70e7-a11a-4fa7-9842-8fcf0e8c6224</link><a10:author><a10:name>Brad E.</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/f1eb3b62-4ac9-4e60-892a-28631d38eb15</a10:uri></a10:author><title>Can I reference a Workbook scoped named range in the Worksheet Change code?</title><description>
&lt;p&gt;I had three worksheets using the Worksheet_Change event to call a procedure in Module1.&amp;nbsp; Everything worked fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because users need a change on 1 of the&amp;nbsp;3 sheets, the Module1 code won't work for the new layout.&amp;nbsp; I thought it would be easiest to just copy the code over to the Worksheet_Change area, modify it as&amp;nbsp;needed&amp;nbsp;and stop calling the Module1 code.&amp;nbsp; The problem
 I ran into is when the Worksheet_Change code attempts to reference a Named Range.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Target.Offset(0, -2).Value = Range("TODAY").Value&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 14:04:39 Z</pubDate><a10:updated>2012-05-15T16:39:00Z</a10:updated><a10:contributor><a10:name>Brad E.</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/f1eb3b62-4ac9-4e60-892a-28631d38eb15</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/right-click-menu-do-not-includes-to-start-excel/467c9775-22c5-44b5-82a4-4f1ca5c95a3e</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/right-click-menu-do-not-includes-to-start-excel/467c9775-22c5-44b5-82a4-4f1ca5c95a3e</link><a10:author><a10:name>ailsa_77</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/d54c4fe7-8d2e-4b24-9198-a3a0a9b8c7cc</a10:uri></a10:author><title>Right click menu do not includes to start excel</title><description>I suddenly found when I right click on any blank part in my desktop, there is [text]/[doc]/[ppt] and so on, but no longer has the [excel], but if I open an old excel or use start-programme-microsoft office-excel to start, they are works well...</description><pubDate>Tue, 15 May 2012 13:44:07 Z</pubDate><a10:updated>2012-05-16T13:42:39Z</a10:updated><a10:contributor><a10:name>ailsa_77</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/d54c4fe7-8d2e-4b24-9198-a3a0a9b8c7cc</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_xp-excel/text-to-date-conversion/a1e44b67-a2a2-43fa-99f5-258eda562588</guid><link>http://answers.microsoft.com/en-us/office/forum/office_xp-excel/text-to-date-conversion/a1e44b67-a2a2-43fa-99f5-258eda562588</link><a10:author><a10:name>ExcelAID</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/e1fe9f8b-d467-45be-b42d-4a0d515035ca</a10:uri></a10:author><title>Text to Date Conversion</title><description>
&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is there an easier way to convert text field like this into date for sorting? (20100104), I tried Datevalue function but its returning (#value). Also, tried to use =year()&amp;amp;month() but its returning(#num)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;EA&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 13:11:01 Z</pubDate><a10:updated>2012-05-15T16:10:04Z</a10:updated><a10:contributor><a10:name>ExcelAID</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/e1fe9f8b-d467-45be-b42d-4a0d515035ca</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/vba-code-to-cancel-code-operation/c4393515-1e54-4abd-8427-1ccc6a300f2c</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/vba-code-to-cancel-code-operation/c4393515-1e54-4abd-8427-1ccc6a300f2c</link><a10:author><a10:name>fride360</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/3f3ecfca-d806-4735-a5c6-8d180916ef85</a10:uri></a10:author><title>vba code to cancel code operation</title><description>
&lt;p&gt;I have some code that runs how it's supposed to but I would like to have a button that I can use to cancel the operation.&amp;nbsp; Right now I click "Esc" and then the vba box pops up and I click cancel.&amp;nbsp; I would like for all of this to happen by just clicking a
 cancel button on my spreadsheet.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 12:55:03 Z</pubDate><a10:updated>2012-05-15T18:04:39Z</a10:updated><a10:contributor><a10:name>fride360</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/3f3ecfca-d806-4735-a5c6-8d180916ef85</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/using-password-but-with-option-of-read-only/46c3ef18-7d37-49fe-b6e4-7ef550d0fd6d</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/using-password-but-with-option-of-read-only/46c3ef18-7d37-49fe-b6e4-7ef550d0fd6d</link><a10:author><a10:name>ClaireES</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/d97bc7c9-2689-4828-abd6-102e753e4941</a10:uri></a10:author><title>Using password but with option of Read only</title><description>In excel 2010, when I protect the document with a password it now doesn't have an option for people to open it as read only. It used to do this but for some reason it has stopped and just asks for a password with no other options.</description><pubDate>Tue, 15 May 2012 12:47:42 Z</pubDate><a10:updated>2012-05-15T15:18:14Z</a10:updated><a10:contributor><a10:name>ClaireES</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/d97bc7c9-2689-4828-abd6-102e753e4941</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/how-do-i-use-excel-cells-in-vba-to-send-email/1d1f1d29-1d67-4bab-9fc4-e42e5ae81207</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/how-do-i-use-excel-cells-in-vba-to-send-email/1d1f1d29-1d67-4bab-9fc4-e42e5ae81207</link><a10:author><a10:name>DonMurray</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/fd2ebab8-f830-4df7-b26d-f09b15507bfa</a10:uri></a10:author><title>How do I use excel cells in VBA to send email?</title><description>
&lt;p&gt;This is the code I use to send an email from excel.&lt;/p&gt;
&lt;p&gt;Is there a way to use info from the spreadsheet for the subject instead of typing it in.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Sub CommandButton1_Click()&lt;br /&gt;
Dim oOLook As Object&lt;br /&gt;
Dim oEMail As Object&lt;br /&gt;
'&lt;br /&gt;
Set oOLook = CreateObject("Outlook.Application")&lt;br /&gt;
oOLook.Session.Logon&lt;br /&gt;
Set oEMail = oOLook.CreateItem(0)&lt;br /&gt;
oEMail.Display&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On Error Resume Next&lt;br /&gt;
&amp;nbsp;With oEMail&lt;br /&gt;
&amp;nbsp;.to = "P.O. Request"&lt;br /&gt;
' .CC = ""&lt;br /&gt;
' .BCC = ""&lt;br /&gt;
&amp;nbsp;.Subject = "PO request"&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;.Body = "See P.O. Request as per attached."&lt;br /&gt;
' .Send&lt;br /&gt;
&amp;nbsp;End With&lt;br /&gt;
' On Error GoTo 0&lt;br /&gt;
'&lt;br /&gt;
End Sub&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 11:45:01 Z</pubDate><a10:updated>2012-05-15T13:58:48Z</a10:updated><a10:contributor><a10:name>DonMurray</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/fd2ebab8-f830-4df7-b26d-f09b15507bfa</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/excel-vba-macro-required/005c441c-e5ac-4cda-a727-e904b7620abf</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/excel-vba-macro-required/005c441c-e5ac-4cda-a727-e904b7620abf</link><a10:author><a10:name>Ejaz Rasul</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/089d36d9-916a-474d-8094-dce5e44810c3</a10:uri></a10:author><title>Excel VBA Macro Required</title><description>
&lt;p&gt;&lt;span&gt;I have following data in sheet1 containing list of 06 observations (obs1 to Obs6) in Column A and list of samples (1 to 10) given in columns B to K. Only some observations relate to particulars samples. We validate all these observations to all samples
 and mark “Yes” in respective column, if observation exist in particular sample. I want to display results in Sheet2, observation wise list of only those samples that have been marked “Yes” against each observation. For example if samples 1,3,9 of obs1 have
 been marked yes. Then report should show Obs1 as heading and list of samples in separate rows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;span&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sheet1&lt;/strong&gt;&lt;/td&gt;










&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;Sample&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Observations&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs1&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs2&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs3&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs6&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;/tr&gt;
&lt;tr&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Required Results in Sheet2&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obs6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/span&gt;</description><pubDate>Tue, 15 May 2012 10:40:39 Z</pubDate><a10:updated>2012-05-15T16:11:03Z</a10:updated><a10:contributor><a10:name>Ejaz Rasul</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/089d36d9-916a-474d-8094-dce5e44810c3</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/pasting-word-table-to-excel-but-all-the-columns/2bfbaeef-8532-4069-9a99-5ffb178dcb92</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/pasting-word-table-to-excel-but-all-the-columns/2bfbaeef-8532-4069-9a99-5ffb178dcb92</link><a10:author><a10:name>Nurein</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/4592b688-4b56-4cab-9af4-d7122685276e</a10:uri></a10:author><title>pasting Word table to Excel but all the columns were fit into one column</title><description>i tried pasting the table to excel but all the columns were fit into one column........ i tried converting to text and webpage then importing into excel but the numbers were jumbled up e.g. 24 569 became 569 24.what to do?</description><pubDate>Tue, 15 May 2012 09:16:33 Z</pubDate><a10:updated>2012-05-16T12:20:58Z</a10:updated><a10:contributor><a10:name>Nurein</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/4592b688-4b56-4cab-9af4-d7122685276e</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/filter-multiple-values/53343f8a-5230-41fa-a5f3-8797e3d9f55b</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/filter-multiple-values/53343f8a-5230-41fa-a5f3-8797e3d9f55b</link><a10:author><a10:name>Bassianius</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/eedbbaa2-3865-4ec9-8340-11a81dfbd83c</a10:uri></a10:author><title>Filter multiple values</title><description>Hi all,
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;I have been scouring the internet for a specific answer for the last hour and a half now, and it's left me more frustrated than enlightened... I'm setting up a library system in Excel to be able to quickly filter specific details of a large array of advertisements,
 leaflets, brochures, etc and quickly find its location (also specified in the excel sheet.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;A screenshot of how it looks:&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;&lt;a href="http://i1182.photobucket.com/albums/x460/BasMeelkop/example-1.jpg" target="_blank"&gt;Click here&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;Because of the fact this list will get pretty large pretty fast, I need a good system from the start. I want to be able to filter all columns, but the problem resides within the Product Group and the Products section.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;I.e. #3 in the example screenshot.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This advertisement contains both PG3 and PG4, and contains three different products. Say that in three months I want to look for this advertisement using as a criteria PG4 and 903.001, I want #4 to appear as well. Simply put:&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;How do I get all Product Groups to appear in one filter, and how do I do the same with Products?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;If there is anything else you need to know in order to be able to help me out, just ask away, and I'll do my best to answer! Thank you very much in advance.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;If this is not the optimal way of doing it, I'm open for suggestions!&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;Regards,&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;Bassianius &amp;nbsp;&lt;/div&gt;
</description><pubDate>Tue, 15 May 2012 08:36:19 Z</pubDate><a10:updated>2012-05-16T08:27:00Z</a10:updated><a10:contributor><a10:name>Bassianius</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/eedbbaa2-3865-4ec9-8340-11a81dfbd83c</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/in-a-table-of-occations-i-want-to-count-the-number/85afb0fe-65f2-4e80-91e6-50c761410f4d</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/in-a-table-of-occations-i-want-to-count-the-number/85afb0fe-65f2-4e80-91e6-50c761410f4d</link><a10:author><a10:name>PMLefdal</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/74509f3d-7b10-4a56-ba60-767140707b83</a10:uri></a10:author><title>In a table of occations I want to count the number of certain values the last 5 hours.</title><description>
&lt;p&gt;See table below. I want to count the number of 1's in column AH the last 5 hour (backward in time from 15.05.2012 05:09 ), The formula should be placed in AH1 (The answer is 4).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;

&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;B&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;……………….&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;AH&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Time&lt;/td&gt;
&lt;td&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Temp&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;14.05.2012 21:24&lt;/td&gt;
&lt;td&gt;89,51&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;14.05.2012 21:26&lt;/td&gt;
&lt;td&gt;89,93&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;14.05.2012 21:35&lt;/td&gt;
&lt;td&gt;87,99&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;14.05.2012 21:38&lt;/td&gt;
&lt;td&gt;88,42&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;14.05.2012 21:41&lt;/td&gt;
&lt;td&gt;88,01&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;14.05.2012 21:49&lt;/td&gt;
&lt;td&gt;88,43&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;14.05.2012 22:02&lt;/td&gt;
&lt;td&gt;87,44&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;14.05.2012 22:11&lt;/td&gt;
&lt;td&gt;88,02&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;14.05.2012 22:31&lt;/td&gt;
&lt;td&gt;85,53&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;14.05.2012 22:45&lt;/td&gt;
&lt;td&gt;85,94&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;14.05.2012 22:55&lt;/td&gt;
&lt;td&gt;85,03&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;14.05.2012 23:25&lt;/td&gt;
&lt;td&gt;86,65&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;14.05.2012 23:47&lt;/td&gt;
&lt;td&gt;85,15&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;15.05.2012 00:30&lt;/td&gt;
&lt;td&gt;86,29&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;15.05.2012 01:02&lt;/td&gt;
&lt;td&gt;84,74&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;15.05.2012 01:43&lt;/td&gt;
&lt;td&gt;86,23&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;td&gt;15.05.2012 01:51&lt;/td&gt;
&lt;td&gt;85,66&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;15.05.2012 02:10&lt;/td&gt;
&lt;td&gt;86,73&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;15.05.2012 02:36&lt;/td&gt;
&lt;td&gt;85,27&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;15.05.2012 02:45&lt;/td&gt;
&lt;td&gt;86,11&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;15.05.2012 02:57&lt;/td&gt;
&lt;td&gt;85,59&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;15.05.2012 03:05&lt;/td&gt;
&lt;td&gt;86,01&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;15.05.2012 03:26&lt;/td&gt;
&lt;td&gt;85,04&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;15.05.2012 03:35&lt;/td&gt;
&lt;td&gt;85,53&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;26&lt;/td&gt;
&lt;td&gt;15.05.2012 03:41&lt;/td&gt;
&lt;td&gt;84,37&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;15.05.2012 03:56&lt;/td&gt;
&lt;td&gt;85,48&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;15.05.2012 04:00&lt;/td&gt;
&lt;td&gt;84,77&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;29&lt;/td&gt;
&lt;td&gt;15.05.2012 04:04&lt;/td&gt;
&lt;td&gt;85,19&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;15.05.2012 04:13&lt;/td&gt;
&lt;td&gt;84,12&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;31&lt;/td&gt;
&lt;td&gt;15.05.2012 04:18&lt;/td&gt;
&lt;td&gt;84,6&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;15.05.2012 04:20&lt;/td&gt;
&lt;td&gt;84,18&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;33&lt;/td&gt;
&lt;td&gt;15.05.2012 04:38&lt;/td&gt;
&lt;td&gt;85,16&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;34&lt;/td&gt;
&lt;td&gt;15.05.2012 04:46&lt;/td&gt;
&lt;td&gt;84,66&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;35&lt;/td&gt;
&lt;td&gt;15.05.2012 04:54&lt;/td&gt;
&lt;td&gt;85,57&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;36&lt;/td&gt;
&lt;td&gt;15.05.2012 04:57&lt;/td&gt;
&lt;td&gt;85,16&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;37&lt;/td&gt;
&lt;td&gt;15.05.2012 05:07&lt;/td&gt;
&lt;td&gt;85,85&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;td&gt;15.05.2012 05:09&lt;/td&gt;
&lt;td&gt;85,52&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Per Morten Lefdal&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 07:17:11 Z</pubDate><a10:updated>2012-05-15T10:55:52Z</a10:updated><a10:contributor><a10:name>PMLefdal</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/74509f3d-7b10-4a56-ba60-767140707b83</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/how-to-add-textbox-to-a-frame-via-code/ad213723-05b5-49be-9339-8eadcda01e6a</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/how-to-add-textbox-to-a-frame-via-code/ad213723-05b5-49be-9339-8eadcda01e6a</link><a10:author><a10:name>FARAZ A QURESHI</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/5c7d75e1-4d29-4ee5-ad8d-76b93fc020f2</a10:uri></a10:author><title>How to Add TextBox To A Frame Via Code?</title><description>
&lt;div&gt;What would be the correct version of the following attempt to create/add a textbox within a frame on a form, upon a click of Command Button?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;Private Sub CommandButton1_Click()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; Me.Frame1.AddTextBox&lt;/div&gt;
&lt;div&gt;End Sub&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;Thanx in advance.&lt;/div&gt;
</description><pubDate>Tue, 15 May 2012 04:26:28 Z</pubDate><a10:updated>2012-05-15T06:38:25Z</a10:updated><a10:contributor><a10:name>FARAZ A QURESHI</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/5c7d75e1-4d29-4ee5-ad8d-76b93fc020f2</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2007-excel/how-do-i-set-up-a-dynamic-filter-in-my-macro/c47fb08c-e0a4-4b14-86a7-9f32d7ce9ad7</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2007-excel/how-do-i-set-up-a-dynamic-filter-in-my-macro/c47fb08c-e0a4-4b14-86a7-9f32d7ce9ad7</link><a10:author><a10:name>ogerriz</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/e077833f-fe28-4356-bfde-5ed0fc11a1c1</a10:uri></a10:author><title>How do I set-up a dynamic filter in my macro</title><description>
&lt;p&gt;I do weekly data dumps from our project database.&amp;nbsp; This dump goes from col A to col KA and can be from 150 rows to over 2000 rows.&amp;nbsp; No telling how many rows of data will come up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have recorded a macro doing all the formatting and hiding of non-useful information but I need to send this spreadsheet which now has 10 cols of data to other sales team members for comment so I recorded a macro to filter for project amounts not equal
 to zero in the column AK which is always the column I need.&amp;nbsp; The macro lines relating to it are:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Range("AK1").Select&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Rows("1:1").RowHeight = 43.5&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Columns("KC:KC").ColumnWidth = 12.29&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Range("AK1").Select&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.AutoFilter&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveSheet.Range("$A$1:$KC$154").AutoFilter Field:=37, Criteria1:=Array("&amp;lt;&amp;gt;0"), Operator:=xlFilterValues&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried using the macro for more than 154 rows and it seems to work but am worried that at some stage it will encounter errors if I don't fix it or make it dynamic.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 01:20:56 Z</pubDate><a10:updated>2012-05-15T06:08:59Z</a10:updated><a10:contributor><a10:name>ogerriz</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/e077833f-fe28-4356-bfde-5ed0fc11a1c1</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_xp-excel/macro-modification-onkey/91d654e0-4021-4737-a598-19b39bbf9f93</guid><link>http://answers.microsoft.com/en-us/office/forum/office_xp-excel/macro-modification-onkey/91d654e0-4021-4737-a598-19b39bbf9f93</link><a10:author><a10:name>Davexx</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/aa07a71c-ddc1-46a2-b0f3-011670bc5c8c</a10:uri></a10:author><title>MACRO MODIFICATION, onkey</title><description>
&lt;p&gt;hi,&amp;nbsp; i am trying to modify a macro from use of:&amp;nbsp;&amp;nbsp;hitting 1 key,&amp;nbsp; to:&amp;nbsp;&amp;nbsp;2 keys,&amp;nbsp; to make a macro work.&amp;nbsp;&amp;nbsp;although i can have it perform any function wanted, i have included the home example at the bottom (lets home key go to more than 1 location in a line).&amp;nbsp;
 thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.OnKey "{HOME}", "myHome"&amp;nbsp; 'name myhome as desired&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;using&amp;nbsp;example of:&amp;nbsp; "ALT"&amp;nbsp; and:&amp;nbsp; "a"&amp;nbsp; keys.&amp;nbsp; STATUS:&amp;nbsp; got just the "a" key to work by itself,&amp;nbsp; but in trying to combine with ALT, there is a problem.&lt;/p&gt;
&lt;p&gt;would seem i need some other way to define the object for the:&amp;nbsp; ALT&amp;nbsp; key&lt;/p&gt;
&lt;p&gt;these do not seem to work:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "{ALT}" And "{A}", "Cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "{ALT}" + "{A}", "Cut1"&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "{ALT+a}", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp; 'method of object failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "ALT+a", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "ALT", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "Alt", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "{ALT}", "myend"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "{Alt}", "myend"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'failed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Application.OnKey "{a}", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'progress, a works for "end", prob: Cut1 cannot be found, oops, not case sens macro or ltr A,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.OnKey "{ALT+a}", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ohono, starting over (but cannot be found is after error), stuck: ALT+a does not work&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;==========&amp;nbsp; ANSWER:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.OnKey "%{a}", "cut1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ANSWER for: cntrl alt f12: "^%{F12}"&amp;nbsp;&amp;nbsp;&amp;nbsp; close all files &amp;amp; reopen&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.OnKey "%3", "cut4"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'PROBLEM:&amp;nbsp;&amp;nbsp; numbers do not seem to work,&amp;nbsp;&amp;nbsp;ANSWER:&amp;nbsp; rem brackets around 3.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PROBLEM:&amp;nbsp;&amp;nbsp;&amp;nbsp; SHORT CUTS IN TOOLBARS FOR MACROS HAVE TO BE UNDONE:&amp;nbsp; by removing ampersand infront of the intended&amp;nbsp; ALT-shortcut.&amp;nbsp; IS THERE A WAY TO MAKE LINKS WORK FROM the&amp;nbsp; OnKey&amp;nbsp;&amp;nbsp; or some other work around ??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;( a in brackets,&amp;nbsp; or cut1 items are&amp;nbsp;Not case sensitive)&lt;/p&gt;
&lt;p&gt;==========&amp;nbsp; extra info:&amp;nbsp; (what using the home key to do:&amp;nbsp; 2 home destinations instead of just one)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sub myHome()&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Home key has 2 destinations automated&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim L2 As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; L2 = Range("L2")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim N8 As String&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; N8 = Range("N8")&lt;/p&gt;
&lt;p&gt;If ActiveCell.Column = Range(L2).Column Then&amp;nbsp;&amp;nbsp; 'manual:&amp;nbsp; "DD:DD"&lt;br /&gt;
Cells(ActiveCell.Row, N8).Select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'manual:&amp;nbsp; "DM"&lt;br /&gt;
Else&lt;br /&gt;
Cells(ActiveCell.Row, L2).Select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'manual:&amp;nbsp; "DD"&lt;br /&gt;
End If&lt;/p&gt;
&lt;p&gt;'L2 is a fixed/ permanent cell location that has a dynamic reference:&amp;nbsp; (4 is row formula resides in:&amp;nbsp; no $4 sign = DD:DD)&lt;br /&gt;
'=SUBSTITUTE(SUBSTITUTE(CELL("address",$DD4),"$",""),ROW(),"")&amp;amp;":"&amp;amp;SUBSTITUTE(SUBSTITUTE(CELL("address",$DD4),"$",""),ROW(),"")&lt;br /&gt;
End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;==========&amp;nbsp;&amp;nbsp;&amp;nbsp; END KEY MULTIPLE DESTINATIONS&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sub myend()&amp;nbsp;&amp;nbsp;&amp;nbsp; 'insert in a standard module, part 2 of reassign End key has 3 destinations automated&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim L2 As String&amp;nbsp;&amp;nbsp;&amp;nbsp; 'home&amp;nbsp;&amp;nbsp;&amp;nbsp; CT&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; L2 = Range("L2")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim L3 As String&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fm&amp;nbsp;&amp;nbsp;&amp;nbsp; DI&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; L3 = Range("L3")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim L4 As String&amp;nbsp;&amp;nbsp;&amp;nbsp; 'to&amp;nbsp;&amp;nbsp;&amp;nbsp; DP&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; L4 = Range("L4")&lt;/p&gt;
&lt;p&gt;If ActiveCell.Column = Range(L3).Column Then&lt;br /&gt;
Cells(ActiveCell.Row, L4).Select&lt;br /&gt;
Else&lt;/p&gt;
&lt;p&gt;If ActiveCell.Column = Range(L4).Column Then&lt;br /&gt;
Cells(ActiveCell.Row, L2).Select&lt;br /&gt;
Else&lt;/p&gt;
&lt;p&gt;If ActiveCell.Column &amp;gt; Range(L3).Column Then&amp;nbsp;&amp;nbsp;&amp;nbsp; 'os, works with 1 endif here&lt;br /&gt;
If ActiveCell.Column &amp;lt; Range(L4).Column Then&lt;br /&gt;
Cells(ActiveCell.Row, L4).Select&lt;br /&gt;
End If&lt;br /&gt;
Else&lt;/p&gt;
&lt;p&gt;Cells(ActiveCell.Row, L3).Select&lt;br /&gt;
'End If&amp;nbsp; 'extra&lt;br /&gt;
End If&lt;br /&gt;
End If&lt;br /&gt;
End If&lt;br /&gt;
'L2 is a fixed/ permanent cell location that has a dynamic reference:&amp;nbsp; (2 is row formula resides in:&amp;nbsp; no $2 sign = CT:CT)&lt;br /&gt;
'=SUBSTITUTE(SUBSTITUTE(CELL("address",$CT2),"$",""),ROW(),"")&amp;amp;":"&amp;amp;SUBSTITUTE(SUBSTITUTE(CELL("address",$CT2),"$",""),ROW(),"")&lt;br /&gt;
End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description><pubDate>Tue, 15 May 2012 00:50:32 Z</pubDate><a10:updated>2012-05-15T09:57:12Z</a10:updated><a10:contributor><a10:name>Davexx</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/aa07a71c-ddc1-46a2-b0f3-011670bc5c8c</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_xp-excel/i-have-a-column-with-positive-and-negative-numbers/90038659-aec7-4e7d-8692-1893106e374f</guid><link>http://answers.microsoft.com/en-us/office/forum/office_xp-excel/i-have-a-column-with-positive-and-negative-numbers/90038659-aec7-4e7d-8692-1893106e374f</link><a10:author><a10:name>MistiStevens</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/24abea82-56d6-446d-8fe7-2f0007be8819</a10:uri></a10:author><title>I have a column with positive and negative numbers.  I want to separate them into two columns one negative numbers and one positive numbers.  How do I do this?</title><description>
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;i have this&lt;br /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Amount&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;-20.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;54.09&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;41.58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;41.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;42.83&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;i want this&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Debit&lt;/td&gt;
&lt;td&gt;Credit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;-20.00&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;54.09&lt;br /&gt;
40.83&lt;br /&gt;
41.58&lt;br /&gt;
41.33&lt;br /&gt;
42.83&lt;br /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><pubDate>Mon, 14 May 2012 23:26:27 Z</pubDate><a10:updated>2012-05-15T15:05:25Z</a10:updated><a10:contributor><a10:name>MistiStevens</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/24abea82-56d6-446d-8fe7-2f0007be8819</a10:uri></a10:contributor></item><item><guid isPermaLink="true">http://answers.microsoft.com/en-us/office/forum/office_2010-excel/linking-sales-information-from-ebay-to-excel/98dcd0b8-0c9f-46b1-a9ff-88b55202182a</guid><link>http://answers.microsoft.com/en-us/office/forum/office_2010-excel/linking-sales-information-from-ebay-to-excel/98dcd0b8-0c9f-46b1-a9ff-88b55202182a</link><a10:author><a10:name>pyro86</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/2631ecb6-b2e5-4b1c-b8ff-b0b6a6c157ca</a10:uri></a10:author><title>linking sales information from ebay to excel</title><description>I am unsure as to whether this is possible or not. I am looking to link the sales data from ebay to my excel spreadsheet. I would want to to obtain the item name, sales price, P&amp;amp;P cost, date sold, ebay fee, paypal fee and listing fee and enter in to a
 excel spreadsheet, is this at all possible or is it wishful thinking?&amp;nbsp;</description><pubDate>Mon, 14 May 2012 22:18:30 Z</pubDate><a10:updated>2012-05-15T15:37:27Z</a10:updated><a10:contributor><a10:name>pyro86</a10:name><a10:uri>http://answers.microsoft.com/en-us/profile/2631ecb6-b2e5-4b1c-b8ff-b0b6a6c157ca</a10:uri></a10:contributor></item></channel></rss>
