<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Excelguru.ca</title>
		<link>http://www.excelguru.ca/forums/</link>
		<description>This is a free help forum for those using Microsoft Excel.</description>
		<language>en</language>
		<lastBuildDate>Thu, 17 May 2012 15:27:08 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.excelguru.ca/forums/images/misc/rss.png</url>
			<title>Excelguru.ca</title>
			<link>http://www.excelguru.ca/forums/</link>
		</image>
		<item>
			<title>Determining textual differences between cells</title>
			<link>http://www.excelguru.ca/forums/showthread.php?894-Determining-textual-differences-between-cells&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 14:56:59 GMT</pubDate>
			<description>Each week I put together a list of changes to a pre-existing database and then send off those changes to another group. Later in the week when they...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Each week I put together a list of changes to a pre-existing database and then send off those changes to another group. Later in the week when they return the updated file I check to see if they have made all correct changes. These changes generally include adding or removing text from specific cells or repositioning columns. <br />
<br />
I am looking for a dynamic way to track if all necessary corrections were made. To be clear, I do not need simple conditional formatting which will tell me which cells are not alike. I know which cells are not alike. I need to be able to say in some form of coding: <br />
<br />
&quot;Check to see if cell X is the same as cell Y, minus the highlighted/colored/striked-out text.&quot; Or similarly &quot;Check to see if cell X is the same as cell Y, except with the addition of the text that was colored a specific color in cell Y.&quot;<br />
<br />
Any advice would be greatly appreciated.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>matt0925</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?894-Determining-textual-differences-between-cells</guid>
		</item>
		<item>
			<title>Specific area of worksheet to pdf for inclusion in email or FAX</title>
			<link>http://www.excelguru.ca/forums/showthread.php?893-Specific-area-of-worksheet-to-pdf-for-inclusion-in-email-or-FAX&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 09:48:26 GMT</pubDate>
			<description>Hello 
 
I have a series of worksheets that represent monthly client statements. I ultimately want to be able to send the statements individually or...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><font color="#000000"><span style="font-family: verdana">Hello</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">I have a series of worksheets that represent monthly client statements. I ultimately want to be able to send the statements individually or in mass at month end to clients via MSExpress. Having never delved into Macros I am a complete </span></font><font color="#000000"><span style="font-family: verdana">novice and therefore need to be treated with kid gloves.</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">The worksheets are identical in layout and only differ with user data. I have created cells per worksheet that refer to a 'Master' worksheet to mange statement dating, period, year etc. Also I have a unique 'account number' per worksheet. I want to be able to save the individual worksheets as .pdf documents, creating the path and file name from the existing path and atributes within </span></font><font color="#000000"><span style="font-family: verdana">the file. This I have done as follows.</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">=LEFT(CELL(&quot;filename&quot;,A1),FIND(&quot;[&quot;,CELL(&quot;filename&quot;,A1),1)-1)&amp;K7&amp;&quot;_&quot;&amp;K4&amp;J4&amp;&quot;.pdf&quot;</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">which results in a string as follows</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">C:\Documents and Settings\Kenneth Smart\My Documents\Business Ventures\ABC\ABC077_20124.pdf</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">All goes well when recording the macro below and it appears to work well, that is until I run it on any of the worksheets that it was not recorded in.</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">My problem is that the .pdf file name is not updating to the new worksheet data and retains the original file name. I have looked at some comments on the www, however, only being a geek wannabee I have yet to acquire the skill-set to understand whether my problem is unique.</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">I don't think it has anything to do with the .pdf creator, more like a refreshing or waiting period for excel to catch up with itself. As you can see from the macro I do go to the lengths of copying the result of the formula string as a 'value' into a secondary cell in an attempt to force the calculation to reveal the updated file name, but with no luck. I am confident that there is a very simple solution, perhaps this is why it evades me.</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">Any assistance will be welcome. </span></font><br />
<br />
<b>Sub Save_pdf()<br />
'<br />
' Save_pdf Macro<br />
'<br />
<br />
'<br />
Range(&quot;Q1&quot;).Select<br />
Selection.Copy<br />
Range(&quot;R1&quot;).Select<br />
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _<br />
:=False, Transpose:=False<br />
Range(&quot;R1&quot;).Select<br />
Application.CutCopyMode = False<br />
Range(&quot;A23&quot;).Select<br />
Application.CutCopyMode = False<br />
Range(&quot;R2&quot;).Select<br />
ActiveCell.FormulaR1C1 = _<br />
&quot;C:\Documents and Settings\Kenneth Smart\My Documents\Business Ventures\ABC\ABC077_20124.pdf&quot;<br />
Range(&quot;A23&quot;).Select<br />
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _<br />
&quot;C:\Documents and Settings\Kenneth Smart\My Documents\Business Ventures\ABC\ABC077_20124.pdf&quot; _<br />
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _<br />
:=False, OpenAfterPublish:=False<br />
End Sub</b></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?9-VBA-Programming">VBA Programming</category>
			<dc:creator>Kas2401</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?893-Specific-area-of-worksheet-to-pdf-for-inclusion-in-email-or-FAX</guid>
		</item>
		<item>
			<title>Excel 2007 - IF function or LOOKUP function</title>
			<link>http://www.excelguru.ca/forums/showthread.php?891-Excel-2007-IF-function-or-LOOKUP-function&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 18:51:30 GMT</pubDate>
			<description><![CDATA[I am trying to create a conditional report.  For example....if column E is "D" then what is displayed in column G will be "Account Requiring...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>I am trying to create a conditional report.  For example....if column E is &quot;D&quot; then what is displayed in column G will be &quot;Account Requiring Adjustment&quot;.  However, I do not know if the 'IF' function is the way to go or if the 'LOOKUP' function is the way to go.  I've tried both, but with no success whatsoever.  I am hoping someone may be able to help.  The formula's I've created appear as follows:<br />
<br />
IF FUNCTION:<br />
=IF(E2=D,&quot;Account Requiring Assist Code Adjustment&quot;,IF(E2=E,&quot;Adjust Source Code&quot;,IF(E2=F,&quot;Adjust LM Counselor&quot;,IF(E2=G,&quot;Adjust Plan Type&quot;,IF(E2=H,&quot;Email Assigned HOST or Negotiator&quot;)))))<br />
<br />
LOOKUP FUNCTION:<br />
=LOOKUP(E2,{E,E,F,G,H},{&quot;Account Requiring Assist Code Adjustment&quot;,&quot;Adjust Source Code&quot;,&quot;Adjust LM Counselor&quot;,&quot;Adjust Plan Type&quot;,&quot;Email Assigned HOST or Negotiator&quot;})</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>dreinisch</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?891-Excel-2007-IF-function-or-LOOKUP-function</guid>
		</item>
		<item>
			<title>Calculatiing Formula</title>
			<link>http://www.excelguru.ca/forums/showthread.php?890-Calculatiing-Formula&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 08:56:39 GMT</pubDate>
			<description>Morning All, 
 
I have a Cash sheet with totals on it but I can not figure something out. 
 
When entering £1.50 into K6, L6 shows £1.50 
When...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Morning All,<br />
<br />
I have a Cash sheet with totals on it but I can not figure something out.<br />
<br />
When entering £1.50 into K6, L6 shows £1.50<br />
When entering £2.00 into K7, L7 shows £3.50 and so on, but I do not want to see £3.50 in all the cells in L but when I enter figures into the other cell I want the L column to change to the new calculation and so on.<br />
<br />
L39 will show the sum of column K. I hope this makes sence, I am not very good at explaining things. I have attached a copy of the cash sheet to hopefuly explain it self.<br />
<br />
Shazz <br />
xx</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<!-- BEGIN TEMPLATE: postbit_attachment -->
<li>
	<img class="inlineimg" src="http://www.excelguru.ca/forums/images/attach/xls.gif" alt="File Type: xls" />
	<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=621&amp;d=1337158531">DTD Cash Sheet.xls</a> 
(35.0 KB)
</li>
<!-- END TEMPLATE: postbit_attachment -->
			</ul>
		</fieldset>
	

	</div>

<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>Shazz</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?890-Calculatiing-Formula</guid>
		</item>
		<item>
			<title>Help Formula to replace pivot</title>
			<link>http://www.excelguru.ca/forums/showthread.php?889-Help-Formula-to-replace-pivot&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 23:25:55 GMT</pubDate>
			<description>I need urgent help to replace a pivot that I have created for reporting 
The data sheet has more than 20,000 rows and 65 columns.  The main...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>I need urgent help to replace a pivot that I have created for reporting<br />
The data sheet has more than 20,000 rows and 65 columns.  The main information forming this reports come from 4 columns - e.g Classification, Sub Classification, Category &amp; Count<br />
Report needs to populate Top 5 Records from each subclassification with Category name and Count <br />
e.g. <br />
Classification      Sub Classification           Category      Count<br />
<br />
Apple                  Golden Delicious           Fresh            50,000<br />
                                                         2days-old       23,000 <br />
                                                         Week-old       20,000 <br />
                                                         Unclassified    10,000 <br />
 <br />
                         Pink Lady                   2days-old       30,000 <br />
                                                         Week-old       20,000 <br />
                                                         Fresh             2,000<br />
                                                         Unclassified    10,000 <br />
<br />
Orange              Navel                          Fresh             45,000<br />
                                                         2days-old       32,000 <br />
                                                         Week-old       20,000 <br />
                                                          .....  &amp; so on<br />
<br />
The formula is required to populate top 5 records at the right.  The classification and Subclassification can remain fixed in the report table in a new Tab as that would not change quite often, hence the formula to populate Column 3 &amp; 4 in the example above is desparately needed.<br />
Any Help is really apprecaited.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>Gill26</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?889-Help-Formula-to-replace-pivot</guid>
		</item>
		<item>
			<title>Help with repeatative steps</title>
			<link>http://www.excelguru.ca/forums/showthread.php?888-Help-with-repeatative-steps&amp;goto=newpost</link>
			<pubDate>Mon, 14 May 2012 21:23:15 GMT</pubDate>
			<description>Hi I am doing calculations of number of reducers i.e 10. However evertime I do calc for the next reducer, I will have to copy and paste to the table...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi I am doing calculations of number of reducers i.e 10. However evertime I do calc for the next reducer, I will have to copy and paste to the table with reducer number (see attached workbook). Recently I had to work with about 80 reducers and this is some what cumbersome.<br />
<br />
All want  to know is there a way I can input data on the green shaded areas and change it as per reducer size  and excel will copy the required data to corresponding reducer number automatically.<br />
<br />
Reducer 1, D= 1500mm, d1=1200mm and calculated x=1050mm<br />
Reducer 2, D= 1000mm, d1=900mm and calculated x=350mm<br />
Reducer 3, D= 1000mm, d1=800mm and calculated x=700mm<br />
<br />
Your help will be appreciated</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<!-- BEGIN TEMPLATE: postbit_attachment -->
<li>
	<img class="inlineimg" src="http://www.excelguru.ca/forums/images/attach/xlsx.gif" alt="File Type: xlsx" />
	<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=620&amp;d=1337030561">Reducer.xlsx</a> 
(25.2 KB)
</li>
<!-- END TEMPLATE: postbit_attachment -->
			</ul>
		</fieldset>
	

	</div>

<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>justmcd</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?888-Help-with-repeatative-steps</guid>
		</item>
		<item>
			<title>Need a help for a formula</title>
			<link>http://www.excelguru.ca/forums/showthread.php?887-Need-a-help-for-a-formula&amp;goto=newpost</link>
			<pubDate>Sun, 13 May 2012 03:10:06 GMT</pubDate>
			<description><![CDATA[Hi, 
 
Can anyone please help to find a formula for this case?  
 
This is a table of shared monthly fee for a rented house. I can't make a proper...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br />
<br />
Can anyone please help to find a formula for this case? <br />
<br />
This is a table of shared monthly fee for a rented house. I can't make a proper formula (from C8 to C11 cells) which will calculate the rent fee for each student according to stayed days and share among them (B5) respectively.<br />
<br />
Pre-conditions:<br />
-Monthly rent fee is always fixed;<br />
-Daily fee varies according to current month;<br />
-A student who didn't stay a single day should be excluded from the list (in this example there are 4 student, but Tom is excluded in B5).<br />
<br />
<div class="cms_table"><table class="cms_table_grid" width="400" align="left"><tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td"></TD>
<TD class="cms_table_grid_td">A</TD>
<TD class="cms_table_grid_td">B</TD>
<TD class="cms_table_grid_td">C</TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">1</TD>
<TD class="cms_table_grid_td">Month:</TD>
<TD class="cms_table_grid_td">APRIL</TD>
<TD class="cms_table_grid_td"></TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">2</TD>
<TD class="cms_table_grid_td">Total Days:</TD>
<TD class="cms_table_grid_td">30</TD>
<TD class="cms_table_grid_td"></TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">3</TD>
<TD class="cms_table_grid_td">Rent Fee:</TD>
<TD class="cms_table_grid_td">5000</TD>
<TD class="cms_table_grid_td"></TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">4</TD>
<TD class="cms_table_grid_td">Per Day:</TD>
<TD class="cms_table_grid_td">167</TD>
<TD class="cms_table_grid_td"></TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">5</TD>
<TD class="cms_table_grid_td">Students stayed:</TD>
<TD class="cms_table_grid_td">3</TD>
<TD class="cms_table_grid_td"></TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">6</TD>
<TD class="cms_table_grid_td"></TD>
<TD class="cms_table_grid_td"></TD>
<TD class="cms_table_grid_td"></TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">7</TD>
<TD class="cms_table_grid_td">Name:</TD>
<TD class="cms_table_grid_td">Days stayed:</TD>
<TD class="cms_table_grid_td">Need to Pay:</TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">8</TD>
<TD class="cms_table_grid_td">Adam</TD>
<TD class="cms_table_grid_td">30</TD>
<TD class="cms_table_grid_td">=?</TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">9</TD>
<TD class="cms_table_grid_td">Bob</TD>
<TD class="cms_table_grid_td">30</TD>
<TD class="cms_table_grid_td">=?</TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">10</TD>
<TD class="cms_table_grid_td">John</TD>
<TD class="cms_table_grid_td">15</TD>
<TD class="cms_table_grid_td">=?</TD>
</tr>
<tr valign="top" class="cms_table_grid_tr"><TD class="cms_table_grid_td">11</TD>
<TD class="cms_table_grid_td">Tom</TD>
<TD class="cms_table_grid_td">0</TD>
<TD class="cms_table_grid_td">0</TD>
</tr>
</table></div>
<br />
Thank you in advance.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>KWord</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?887-Need-a-help-for-a-formula</guid>
		</item>
		<item>
			<title>Avg, Median, Max, and Min with Range</title>
			<link>http://www.excelguru.ca/forums/showthread.php?886-Avg-Median-Max-and-Min-with-Range&amp;goto=newpost</link>
			<pubDate>Thu, 10 May 2012 23:51:22 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I want to find out the Average, Median Max and Min of the "Note Size" (Column B) if the Enterprise Value (Column A) is within the following...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hello,<br />
<br />
I want to find out the Average, Median Max and Min of the &quot;Note Size&quot; (Column B) if the Enterprise Value (Column A) is within the following range:<br />
<br />
All Sizes<br />
&lt;$25M<br />
&gt;$25M - &lt;=$100M<br />
&gt;$100M - &lt;=$250M<br />
&gt;$250M - &lt;=$750M<br />
&gt;$750M?<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=617&amp;d=1336693796"  title="Name:  Excel Question.XLSX
Views: 10
Size:  12.2 KB">Excel Question.XLSX</a><br />
<br />
i tried doing the MEDIAN(IF(A2:A1000&lt;25000000,B2:B1000) as an array but I numbers don't look right.<br />
<br />
I have attached the file for your to look at (two tabs), please let me know what I am doing wrong.<br />
<br />
Thank You!</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<!-- BEGIN TEMPLATE: postbit_attachment -->
<li>
	<img class="inlineimg" src="http://www.excelguru.ca/forums/images/attach/xlsx.gif" alt="File Type: xlsx" />
	<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=617&amp;d=1336693796">Excel Question.XLSX</a> 
(12.2 KB)
</li>
<!-- END TEMPLATE: postbit_attachment -->
			</ul>
		</fieldset>
	

	</div>

<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>PraveshG81</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?886-Avg-Median-Max-and-Min-with-Range</guid>
		</item>
		<item>
			<title><![CDATA[-2147467259 Unexpected Error from external database driver [Non admin user]]]></title>
			<link>http://www.excelguru.ca/forums/showthread.php?885-2147467259-Unexpected-Error-from-external-database-driver-Non-admin-user&amp;goto=newpost</link>
			<pubDate>Thu, 10 May 2012 09:24:04 GMT</pubDate>
			<description>I am getting this error -2147467259 Unexpected Error from external database driver when running a vba macro code at this line-.Provider =...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><font color="#222222"><span style="font-family: Verdana">I am getting this error -2147467259 Unexpected Error from external database driver when running a vba macro code at this line-.Provider = &quot;Microsoft.ACE.OLEDB.12.0&quot;<br />
in below code- </span></font><br />
<font color="#222222"><span style="font-family: Verdana"><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">MyConn = _<br />
&quot;Data Source=&quot; &amp; ThisWorkbook.FullName &amp; &quot;;&quot; &amp; _<br />
&quot;Extended Properties=Excel 12.0;&quot;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></span></font><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><font color="#222222"><span style="font-family: Verdana"><br />
Set Cn = New ADODB.Connection<br />
&nbsp; &nbsp; With Cn<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Provider = &quot;Microsoft.ACE.OLEDB.12.0&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Open MyConn<br />
&nbsp; &nbsp; End With&nbsp;  <br />
</span></font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font color="#222222"><span style="font-family: Verdana"><br />
This is a simple vba macro (not using .net,sql server or ms access). Only excel is used. This works fine in following combinations- Excel 2007 &amp; Windows Xp, Excel 2007 &amp; Windows 7. But in Windows 7 and Excel 2010 it gives this error if the user is not admin. Interestingly, in Windows 7 and Excel 2010, if i login through admin user OR RUn excel.exe by clicking &quot;Run as administrator&quot; option (start-typoe excel-shift +right click-run as administrator)and then opening my excel file it does not give this error and more interestingly if after logging once through admin user and opening this excel file and closing it, I then log off and log in as normal user and open my excel file I still do not get this error.So the thing is that ONE TIME login as admin and opening this excel file temporariily fixes the issue.BUT the problem is that i need to distribute this application to various users and they will be logging it as normal users and i can not ask them to first login as admin user. Why this issue is ioccuring and what is the resolution for this? It&#8217;s very urgent , will really appreciate quick response.thanks.</span></font></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?9-VBA-Programming">VBA Programming</category>
			<dc:creator>shikha77</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?885-2147467259-Unexpected-Error-from-external-database-driver-Non-admin-user</guid>
		</item>
		<item>
			<title>using a macro to put formulas in cells.</title>
			<link>http://www.excelguru.ca/forums/showthread.php?884-using-a-macro-to-put-formulas-in-cells&amp;goto=newpost</link>
			<pubDate>Wed, 09 May 2012 22:52:51 GMT</pubDate>
			<description>I am trying to automate a totals sheet for data I have parsed from a larger file. 
My current code creates a new workbook and adds data to a...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>I am trying to automate a totals sheet for data I have parsed from a larger file.<br />
My current code creates a new workbook and adds data to a specified number of sheets, 1-12.<br />
I am trying to add a sheet 13 named &quot;Totals&quot; that will give a totals from sheets 1-12.<br />
I am unsure how to get a formula to be input into a cell from code without hard coding each cell.<br />
In the following code, I am trying to get a sum for columns B to S of rows 11 to 22.  so B9 =SUM(B11:B22) <br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">For cellCount = 2 To 19<br />
&nbsp; &nbsp; &nbsp; 'Worksheets(&quot;Totals&quot;).Range(Cells(9, cellCount)).Value = &quot;=SUM(cells(11,cellcount):cells(22,cellcount))&quot;<br />
Next</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->I get a runtime error at this line in the code.<br />
<br />
I am trying to use a loop to eliminate all the hard coding.  Each of my columns B-S rows 11 to 22 will have similar loops for the formulas.<br />
B11=SUM('1'!M:M)<br />
B12=SUM('2'!M:M)<br />
B13=SUM('3'!M:M)<br />
<br />
C11=COUNTIF('1'!G:G,&quot;H&quot;)<br />
C12=COUNTIF('2'!G:G,&quot;H&quot;)<br />
C13=COUNTIF('3'!G:G,&quot;H&quot;)<br />
<br />
Thank you,<br />
<br />
Simi</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?9-VBA-Programming">VBA Programming</category>
			<dc:creator>Simi</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?884-using-a-macro-to-put-formulas-in-cells</guid>
		</item>
		<item>
			<title>Need a auto click macro for email</title>
			<link>http://www.excelguru.ca/forums/showthread.php?883-Need-a-auto-click-macro-for-email&amp;goto=newpost</link>
			<pubDate>Wed, 09 May 2012 20:45:35 GMT</pubDate>
			<description>HI, 
 
IN MY WORK , I HAVE TO ACKNOWLEDGE A LIK WHICH IS INSIDE THE MAIL. 
 
FOR THAT I NEED A MACRO THAT IF THE MAIL COMES IN THAT FOLDER THEN IT...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>HI,<br />
<br />
IN MY WORK , I HAVE TO ACKNOWLEDGE A LIK WHICH IS INSIDE THE MAIL.<br />
<br />
FOR THAT I NEED A MACRO THAT IF THE MAIL COMES IN THAT FOLDER THEN IT WILL AUTO CLICK THE LINK AND AFTER OPENING THE LINK IT WILL ENTER ONE STRIP &quot;DONE&quot; IN THE GIVEN BOX AND PRESS AKNOWLEDGE BUTTON.<br />
<br />
HOPE I'LL GET MY SOLUTION asap.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?23-Microsoft-Outlook">Microsoft Outlook</category>
			<dc:creator>sanchit16</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?883-Need-a-auto-click-macro-for-email</guid>
		</item>
		<item>
			<title>Viewing links through User Form in Excel Databse</title>
			<link>http://www.excelguru.ca/forums/showthread.php?882-Viewing-links-through-User-Form-in-Excel-Databse&amp;goto=newpost</link>
			<pubDate>Wed, 09 May 2012 11:44:15 GMT</pubDate>
			<description>Hi all, 
 
I am really hoping someone can help me with this, I have a Databse I have created with help which also has a user form to add and view...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><font color="#222222"><span style="font-family: Verdana">Hi all,<br />
<br />
I am really hoping someone can help me with this, I have a Databse I have created with help which also has a user form to add and view data to the spreadsheet, In Text Box 10,11 &amp; 12 you should be able to click the text (which is set up to show as a link) and it takes you to the link, it used to work perfectly fine but since adding code to the database to incorporate a Combo Box to be able to search for a name it does not work and I do not understand why.<br />
<br />
I am really desperate to get this database up and running but just can not figure out the problem, I have had alot of help from others with regards to the coding so I can not take the credit for the entire Database unfortunatley.<br />
<br />
The password is &quot;test&quot; for the data sheet access.<br />
<br />
Please can someone help me!!<br />
<br />
Shazz<br />
xx</span></font></div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<!-- BEGIN TEMPLATE: postbit_attachment -->
<li>
	<img class="inlineimg" src="http://www.excelguru.ca/forums/images/attach/xls.gif" alt="File Type: xls" />
	<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=613&amp;d=1336563821">Database.xls</a> 
(201.5 KB)
</li>
<!-- END TEMPLATE: postbit_attachment -->
			</ul>
		</fieldset>
	

	</div>

<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?9-VBA-Programming">VBA Programming</category>
			<dc:creator>Shazz</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?882-Viewing-links-through-User-Form-in-Excel-Databse</guid>
		</item>
		<item>
			<title>A simple printing pages depending on cell value</title>
			<link>http://www.excelguru.ca/forums/showthread.php?881-A-simple-printing-pages-depending-on-cell-value&amp;goto=newpost</link>
			<pubDate>Tue, 08 May 2012 14:52:01 GMT</pubDate>
			<description>I hope someone can help because this is driving me absolutely bonkers. This should be something so easy yet.... 
 
I am trying to print a number of...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><div style="text-align: left;"><font color="#000000"><span style="font-family: verdana">I hope someone can help because this is driving me absolutely bonkers. This should be something so easy yet....</span></font><br />
<br />
<font color="#000000">I am trying to print a number of pages depending on a cell value which is a value of a formulae</font><br />
<br />
<div style="text-align: left;">Sub PRINT_GENERIC()<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Sheets(&quot;GENERIC&quot;).Select<br />
<br />
a = Range(&quot;Z1&quot;).Value<br />
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=a, Copies:=1<br />
Sheets(&quot;MAINSHEET&quot;).Select<br />
<br />
<br />
End Sub</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div><br />
<br />
<br />
<font color="#000000"><span style="font-family: verdana">The whole worksheet has page breaks in it to make 40 pages. Every time the above macro is run it will print 40 pages regardless of the value of (a).</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">What am I doing wrong?</span></font><br />
<br />
<font color="#000000"><span style="font-family: verdana">Thanks</span></font></div></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?9-VBA-Programming">VBA Programming</category>
			<dc:creator>antonywalsh</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?881-A-simple-printing-pages-depending-on-cell-value</guid>
		</item>
		<item>
			<title>Chart macro broken in 2007</title>
			<link>http://www.excelguru.ca/forums/showthread.php?880-Chart-macro-broken-in-2007&amp;goto=newpost</link>
			<pubDate>Mon, 07 May 2012 19:44:27 GMT</pubDate>
			<description>I have a rather large vba application written for excel to generate assorted reports on SPC data. My histogram chart broke beginning with version...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>I have a rather large vba application written for excel to generate assorted reports on SPC data. My histogram chart broke beginning with version 2007. Same code, different results. I am unfortunately not an excel guru so I'm hoping someone here might be able to tell me why this code that works in all versions of excel prior to version 2007 no longer works. Below is the code and screencaptures from versions 2003 and 2010.<br />
<br />
Thanks,<br />
Robb<br />
<br />
[FUNCTION THAT CREATES THE CHART]<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Private Function ChartHistogram(data As DataStruct_, ByVal StartR As Long, ByVal StartC As Long) As ChartObject<br />
Dim NumGroups As Integer, PlottedPointsCount As Long<br />
Dim R As Long, C As Long<br />
Dim I As Integer<br />
<br />
'########################################################<br />
'#&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CREATE HISTOGRAM CHART&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br />
'########################################################<br />
&nbsp; &nbsp; Charts.Add<br />
&nbsp; &nbsp; ActiveChart.ChartType = xlColumnClustered<br />
&nbsp; &nbsp; ActiveChart.Location Where:=xlLocationAsObject, Name:=SPC_RS.Name<br />
&nbsp; &nbsp; Set ChartHistogram = ActiveSheet.ChartObjects(ActiveSheet.ChartObjects.Count)<br />
&nbsp; &nbsp; <br />
<br />
'ADD SERIES DATA(LINES)<br />
&nbsp; &nbsp; R = StartR<br />
&nbsp; &nbsp; C = StartC<br />
&nbsp; &nbsp; NumGroups = Val(txtDivisions)<br />
&nbsp; &nbsp; PlottedPointsCount = UBound(data.BellCurvePoints)<br />
<br />
On Error Resume Next<br />
&nbsp; &nbsp; For I = 1 To ActiveChart.SeriesCollection.Count<br />
&nbsp; &nbsp; &nbsp; &nbsp; ActiveChart.SeriesCollection(I).Delete<br />
&nbsp; &nbsp; Next I<br />
<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection.NewSeries<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(1).Name = &quot;=&quot;&quot;Distribution&quot;&quot;&quot;<br />
&nbsp; &nbsp; <br />
' Mark added the next two lines for histogram range values<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(1).XValues = &quot;='&quot; &amp; SPC_DS.Name &amp; &quot;'!R&quot; &amp; R &amp; &quot;C&quot; &amp; C &amp; &quot;:R&quot; &amp; R + NumGroups - 1 &amp; &quot;C&quot; &amp; C<br />
&nbsp; &nbsp; C = C + 1<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(1).Values = &quot;='&quot; &amp; SPC_DS.Name &amp; &quot;'!R&quot; &amp; R &amp; &quot;C&quot; &amp; C &amp; &quot;:R&quot; &amp; R + NumGroups - 1 &amp; &quot;C&quot; &amp; C<br />
&nbsp;<br />
&nbsp;' Mark added these lines for display enhancement<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(1).Shadow = True<br />
&nbsp; &nbsp; 'ActiveChart.SeriesCollection(1).Border.Color = vbBlue<br />
&nbsp; &nbsp; ActiveChart.ChartGroups(1).GapWidth = 15<br />
&nbsp; &nbsp; ActiveChart.Axes(xlCategory).Select<br />
&nbsp; &nbsp; Selection.TickLabels.Orientation = 35<br />
&nbsp; &nbsp; Selection.TickLabels.NumberFormat = &quot;0.000&quot;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; C = C + 1<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection.NewSeries<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(2).Name = &quot;=&quot;&quot;Bell Curve&quot;&quot;&quot;<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(2).Values = &quot;='&quot; &amp; SPC_DS.Name &amp; &quot;'!R&quot; &amp; R &amp; &quot;C&quot; &amp; C &amp; &quot;:R&quot; &amp; R + PlottedPointsCount - 1 &amp; &quot;C&quot; &amp; C<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(2).Border.Color = vbRed<br />
&nbsp; &nbsp; ActiveChart.SeriesCollection(2).ChartType = xlLine<br />
&nbsp;  <br />
'Selection<br />
&nbsp; &nbsp; With ActiveChart<br />
&nbsp; &nbsp; &nbsp; &nbsp; .HasAxis(xlCategory, xlPrimary) = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; .HasAxis(xlCategory, xlSecondary) = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; .HasAxis(xlValue, xlPrimary) = True<br />
&nbsp; &nbsp; &nbsp; &nbsp; .HasAxis(xlValue, xlSecondary) = False<br />
&nbsp; &nbsp; End With<br />
<br />
'Remove Gridlines<br />
&nbsp; &nbsp; With ActiveChart<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlCategory).HasMajorGridlines = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlCategory).HasMinorGridlines = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlCategory, xlSecondary).MajorTickMark = xlNone<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlCategory, xlSecondary).MinorTickMark = xlNone<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlCategory, xlSecondary).TickLabelPosition = xlNone<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlValue).HasMajorGridlines = False<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Axes(xlValue).HasMinorGridlines = False<br />
&nbsp; &nbsp; End With<br />
<br />
'FINAL TOUCHES<br />
&nbsp; &nbsp; ActiveChart.ChartArea.Interior.Color = xlAutomatic<br />
&nbsp; &nbsp; ActiveChart.PlotArea.Interior.Color = xlAutomatic<br />
&nbsp; &nbsp; ActiveChart.Legend.Interior.Color = xlAutomatic<br />
&nbsp; &nbsp; ActiveChart.HasTitle = True<br />
&nbsp; &nbsp; ActiveChart.ChartTitle.Characters.Text = &quot;Histogram&quot;<br />
<br />
&nbsp; &nbsp; ActiveChart.Axes(xlValue).CrossesAt = ActiveChart.Axes(xlValue).MinimumScale<br />
&nbsp; &nbsp; ActiveChart.Axes(xlCategory).CrossesAt = ActiveChart.Axes(xlCategory).MinimumScale<br />
<br />
End Function</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->[SNIPPET OF THE COLLECTED DATA (there are 50 values in the Bell Curve)]<br />
<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=608&amp;d=1336419624" id="attachment608" rel="Lightbox_0" ><img src="http://www.excelguru.ca/forums/attachment.php?attachmentid=608&amp;d=1336419624&amp;thumb=1" border="0" alt="Click image for larger version.&nbsp;

Name:	ExampleData.jpg&nbsp;
Views:	8&nbsp;
Size:	37.2 KB&nbsp;
ID:	608" class="thumbnail" style="float:CONFIG" /></a><br />
<br />
[RESULTS IN EXCEL PRIOR TO VER 2007]<br />
<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=606&amp;d=1336419244" id="attachment606" rel="Lightbox_0" ><img src="http://www.excelguru.ca/forums/attachment.php?attachmentid=606&amp;d=1336419244&amp;thumb=1" border="0" alt="Click image for larger version.&nbsp;

Name:	Example2003.jpg&nbsp;
Views:	7&nbsp;
Size:	22.2 KB&nbsp;
ID:	606" class="thumbnail" style="float:CONFIG" /></a><br />
<br />
[RESULTS IN EXCEL 2010]<br />
<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=607&amp;d=1336419291" id="attachment607" rel="Lightbox_0" ><img src="http://www.excelguru.ca/forums/attachment.php?attachmentid=607&amp;d=1336419291&amp;thumb=1" border="0" alt="Click image for larger version.&nbsp;

Name:	Example2010.jpg&nbsp;
Views:	7&nbsp;
Size:	25.3 KB&nbsp;
ID:	607" class="thumbnail" style="float:CONFIG" /></a></div>


	<div style="padding:10px">

	
		<fieldset class="fieldset">
			<legend>Attached Thumbnails</legend>
			<div style="padding:10px">
			<!-- BEGIN TEMPLATE: postbit_attachmentthumbnail -->

<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=606&amp;d=1336419244" 
rel="Lightbox_4081" id="attachment606"
><img class="thumbnail" src="http://www.excelguru.ca/forums/attachment.php?attachmentid=606&amp;stc=1&amp;thumb=1&amp;d=1336419244" 
alt="Click image for larger version.&nbsp;

Name:	Example2003.jpg&nbsp;
Views:	N/A&nbsp;
Size:	22.2 KB&nbsp;
ID:	606"/></a>
&nbsp;

<!-- END TEMPLATE: postbit_attachmentthumbnail --><!-- BEGIN TEMPLATE: postbit_attachmentthumbnail -->

<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=607&amp;d=1336419291" 
rel="Lightbox_4081" id="attachment607"
><img class="thumbnail" src="http://www.excelguru.ca/forums/attachment.php?attachmentid=607&amp;stc=1&amp;thumb=1&amp;d=1336419291" 
alt="Click image for larger version.&nbsp;

Name:	Example2010.jpg&nbsp;
Views:	N/A&nbsp;
Size:	25.3 KB&nbsp;
ID:	607"/></a>
&nbsp;

<!-- END TEMPLATE: postbit_attachmentthumbnail --><!-- BEGIN TEMPLATE: postbit_attachmentthumbnail -->

<a href="http://www.excelguru.ca/forums/attachment.php?attachmentid=608&amp;d=1336419624" 
rel="Lightbox_4081" id="attachment608"
><img class="thumbnail" src="http://www.excelguru.ca/forums/attachment.php?attachmentid=608&amp;stc=1&amp;thumb=1&amp;d=1336419624" 
alt="Click image for larger version.&nbsp;

Name:	ExampleData.jpg&nbsp;
Views:	N/A&nbsp;
Size:	37.2 KB&nbsp;
ID:	608"/></a>
&nbsp;

<!-- END TEMPLATE: postbit_attachmentthumbnail -->
			</div>
		</fieldset>
	

	

	

	

	</div>

<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?3-Charts-And-Dashboarding">Charts And Dashboarding</category>
			<dc:creator>Rburn99</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?880-Chart-macro-broken-in-2007</guid>
		</item>
		<item>
			<title>understanding code</title>
			<link>http://www.excelguru.ca/forums/showthread.php?879-understanding-code&amp;goto=newpost</link>
			<pubDate>Mon, 07 May 2012 12:45:11 GMT</pubDate>
			<description>Hi,  
 
 
I have the following code in the cell code view mode  
Code: 
---------...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi, <br />
<br />
<br />
I have the following code in the cell code view mode <!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">='$ta_srv$!TA_SRV'|LIVECHART!'DAILY;1016,1019,1012,1013,1070;1003=''/ZNH5'',9004=2,9005=1'</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->, and in normal mode the value i see is <!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">3/13/05</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->.<br />
<br />
<br />
Like i'm not sure what the formula/or function does to get that value.<br />
<br />
<br />
thx</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.excelguru.ca/forums/forumdisplay.php?2-Formulas">Formulas</category>
			<dc:creator>mikedonka</dc:creator>
			<guid isPermaLink="true">http://www.excelguru.ca/forums/showthread.php?879-understanding-code</guid>
		</item>
	</channel>
</rss>

