<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2124961622773482541</id><updated>2011-10-17T04:29:53.943-07:00</updated><category term='VBA'/><category term='Formula'/><category term='Worksheets'/><category term='Unhide Sheets'/><category term='Format'/><category term='Export'/><category term='Cells'/><category term='Numbers'/><category term='Text functions'/><category term='Links'/><category term='import'/><category term='Web Query'/><category term='Chart'/><category term='Macros'/><category term='Functions'/><title type='text'>MS Excel Tips and Tricks</title><subtitle type='html'>This blog will feature MS Excel Tips and Tricks with some Basic VBA tips.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-4820202904701929225</id><published>2009-12-17T01:51:00.001-08:00</published><updated>2009-12-17T01:51:47.019-08:00</updated><title type='text'>Prevent Macro from running on Open Event</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Some of the macros written under Auto_Open or Workbook_Open procedure will run as the file is opened.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you have set your macro security level to low, all the files tend to open without any notification and will run the macro on Open event. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Easy way to stop this is to hold "Shift" key while opening the file. This will disable them.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you have set your macro security level to medium, then you can stop the macro from running by clicking on "Disable Macros" option in the notification on Open.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Please note that "Disable Macros" disable all the macros in the workbook. &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-4820202904701929225?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/4820202904701929225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=4820202904701929225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/4820202904701929225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/4820202904701929225'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/12/prevent-macro-from-running-on-open.html' title='Prevent Macro from running on Open Event'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-9179720982211933110</id><published>2009-12-10T05:19:00.001-08:00</published><updated>2009-12-10T05:19:33.534-08:00</updated><title type='text'>VBA to pull Access Data</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Hi folks,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Below is the sample code written to pull data from MS Access database.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Option Explicit&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Public Const sPASSWORD = "" 'Your DB Password here&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Public Const sDBPath = "\Drive\DBPath" 'Your DB Path here&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;'I wrote this code to pull data from MS Access and to show up in a sheet called "Import Data"&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;'The code pulls data only for a particular week selected. Modify the query as per the requirement&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;'Some of the lines will be irrelevant but I still have them as I was testing the code with many options.&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;Sub importData()&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim db As DAO.Database&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim rs As DAO.Recordset&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;        &lt;br /&gt; &lt;/p&gt;&lt;p&gt;        &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    'New variables&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim lRowCounter As Long   'Count rows to populate worksheet from query&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim lastCell As Object&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim endrow As Integer&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim Ws As Worksheet&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim i As Variant&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Dim sWeek As String&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;            &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    'Turn off auto calculation to run the code faster&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Application.ScreenUpdating = False&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Application.Calculation = xlCalculationManual&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;    &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    sWeek = Sheets("Admin").Range("K2").Value&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;    &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    'Clear column data&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Set Ws = Sheets("ImportData")&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Ws.Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Set lastCell = Columns("A").Find("")&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    endrow = lastCell.Row&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Range("A1:P" &amp;amp; endrow).Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    Selection.ClearContents&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;        &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    Range("A1").Select   'Set active cell&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;    lRowCounter = 1&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;    &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    'Connect to DB&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;    &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;            'DB exist&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;        Set db = DBEngine.OpenDatabase(sDBPath, False, True, ";pwd=" &amp;amp; sPASSWORD)&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;        'Set QueryDef = db.QueryDefs("qryReport")&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;        'Set rs = QueryDef.OpenRecordset()&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;        &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;        Set rs = db.OpenRecordset("SELECT tblUtilization.DATE_D, tblEmpDetails.E_NAME_T, tblUtilization.UNITS_N, tblUtilization.TIME_N, tblUtilization.ACCURACY_N, tblUtilization.ONTIME_N, tblUtilization.REMARKS_T, tblReports.TRANS_T, tblDate.Week_T, tblDate.Month_T FROM ((tblUtilization INNER JOIN tblEmpDetails ON tblUtilization.E_LANID_T = tblEmpDetails.E_LANID_T) INNER JOIN tblReports ON tblUtilization.REPORT_T = tblReports.REPORT_T) INNER JOIN tblDate ON tblUtilization.DATE_D = tblDate.Date_D WHERE (((tblDate.Week_T)=""" &amp;amp; sWeek &amp;amp; """))")&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;        &lt;br /&gt; &lt;/p&gt;&lt;p&gt;        &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;    'This loop will collect the field names and place them in the first&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       'row starting at "A1."&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       For i = 0 To rs.Fields.Count - 1&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;           Ws.Cells(1, i + 1).Value = rs.Fields(i).Name&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Next&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;      'This line simply sets the font to bold for the headers.&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;      Ws.Range(Ws.Cells(1, 1), Ws.Cells(1, rs.Fields.Count)).Font.Bold _&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;          = True&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;      'The next line will get the data from the recordset and copy it&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;      'into the Worksheet (Sheet1).&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;       Ws.Range("A2").CopyFromRecordset rs&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;       &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;      'This next code set will just select the data region and auto-fit&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;      'the columns&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Ws.Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Range("A1").Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Selection.CurrentRegion.Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Selection.Columns.AutoFit&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Range("A1").Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;       rs.Close&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       db.Close&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;       Application.Calculation = xlCalculationAutomatic&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;           &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;       Sheets("Report").Select&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;End Sub&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-9179720982211933110?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/9179720982211933110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=9179720982211933110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/9179720982211933110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/9179720982211933110'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/12/vba-to-pull-access-data.html' title='VBA to pull Access Data'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-8602585755696574696</id><published>2009-11-17T06:51:00.001-08:00</published><updated>2009-11-17T06:51:58.016-08:00</updated><title type='text'>Access Query from MS Excel</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;In Microsoft Office 97, the default path for the Northwind database is \Program Files\Microsoft Office\Office\Samples\Northwind.mdb. &lt;br/&gt;A QueryDef is created in Microsoft Access and saved with the database file. It consists of a query and may or may not include criteria. &lt;br/&gt;NOTE: If you receive the "User-defined type not defined" error, activate a module sheet, click References on the Tools menu, and click Microsoft DAO 3.0 Object Library check box. &lt;br/&gt;Retrieving the results of a QueryDef from Microsoft Access is a five step process as follows: &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style='margin-left: 52pt'&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Establish a Database object. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Establish a QueryDef object. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Establish a Recordset Object. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Retrieve the Headers (if desired). &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Retrieve the data from the table. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;After the data is retrieved, you should close all the objects that you opened by issuing .Close commands. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;   Sub GetQueryDef()&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'This sub will get data from an Existing QueryDef in the Northwind&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'database and place the data on sheet2.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;         Dim Db As Database&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;         Dim Qd As QueryDef&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;         Dim Rs As Recordset&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;         Dim Ws As Object&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;         Dim i As Integer&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      Dim Path as String&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'Set the Path to the database. This line is useful because&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'if your database is in another location, you just need to change&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'it here and the Path Variable will be used throughout the code.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      '&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'If you're using Microsoft Office 97, the line should read:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      '&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'Path = "C:\Program Files\Microsoft&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'Office\Office\Samples\Northwind.mdb"&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      '&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      Path = "C:\Msoffice\Access\Samples\Northwind.mdb"&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'Set Ws&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Set Ws = Sheets("Sheet1")&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'This set of code will activate Sheet1 and clear any existing data.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'After clearing the data, it will select cell A1.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Ws.Activate&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Range("A1").Activate&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Selection.CurrentRegion.Select&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Selection.ClearContents&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Range("A1").Select&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'Set the Database and QueryDef. This QueryDef exists in the&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'database.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Set Db = Workspaces(0).OpenDatabase(Path, ReadOnly:=True, _&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;         Exclusive:=False)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Set Qd = Db.QueryDefs("Invoices")&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'Create a new Recordset from the Query based on the stored&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'QueryDef.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Set Rs = Qd.OpenRecordset()&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'This loop will collect the field names and place them in the first&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       'row starting at "A1."&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       For i = 0 To Rs.Fields.Count - 1&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;           Ws.Cells(1, i + 1).Value = Rs.Fields(i).Name&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Next&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'This line simply sets the font to bold for the headers.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      Ws.Range(Ws.Cells(1, 1), Ws.Cells(1, Rs.Fields.Count)).Font.Bold _&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;          =True&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'The next line will get the data from the recordset and copy it&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'into the Worksheet (Sheet1).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Ws.Range("A2").CopyFromRecordset Rs&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'This next code set will just select the data region and auto-fit&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;      'the columns&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Sheets("Sheet1").Select&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Range("A1").Select&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Selection.CurrentRegion.Select&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Selection.Columns.AutoFit&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Range("A1").Select&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Qd.Close&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Rs.Close&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;       Db.Close&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;   End Sub&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='background: white; margin-left: 16pt'&gt;&lt;span style='color:#333333; font-family:Consolas; font-size:10pt'&gt;        &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Source: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/ARTICLES/Q147/7/39.asp&amp;amp;NoWebContent=1&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-8602585755696574696?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/8602585755696574696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=8602585755696574696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8602585755696574696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8602585755696574696'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/11/access-query-from-ms-excel.html' title='Access Query from MS Excel'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-7843603008424629652</id><published>2009-09-27T05:32:00.001-07:00</published><updated>2009-09-27T05:32:57.843-07:00</updated><title type='text'>Comment Box Shapes and Picture</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Bored with the same rectangle yellow comment boxes on your file? Here is a way to change them to shapes of your choice with picture on it (I am Using Excel 2007)&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Select the cell with the comment&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Press Shift+F2 to edit the comment box&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select any border of the comment box. You will notice that the box line has full of dots now.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Right click and select Format comment&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select "Color and Lines" tab&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Now select "Fill effects" from the color drop down&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;					&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Now from the Picture tab, select a picture from your local drive and add it to the comment box.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Now the background of your comment box changes to the picture you have selected&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;					&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Before you proceed to change the shape of this comment box, make sure that you have "Change Shape" toolbar activated in the "Quick Access Toolbar". To do this, follow these steps:&lt;br /&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;Select Office button on the top&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select Excel Options&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select Customize option and select All command from the drop down on the top of this window.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Scroll down till you find "Change Shape" command. Add it to the Quick Access toolbar but selecting it and clicking on Add button&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;							&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Once you are done with it, you will be able to locate "Change shape" icon on the top left near the office button.&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;							&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;Follow Steps 1 to 3 &lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select a shape from the "Change Shape" options (remember which we added just now).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;You will notice that the comment box shape is changed now.&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;					&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-7843603008424629652?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/7843603008424629652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=7843603008424629652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/7843603008424629652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/7843603008424629652'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/09/comment-box-shapes-and-picture.html' title='Comment Box Shapes and Picture'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-8915061626299458143</id><published>2009-09-14T04:42:00.001-07:00</published><updated>2009-09-14T04:42:52.702-07:00</updated><title type='text'>Get rid of GETPIVOTDATA Option</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;If you want to disable the &lt;strong&gt;Generate GetPivotData&lt;/strong&gt; setting, follow these steps, as appropriate for the version of Excel that you are running. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:10pt'&gt;&lt;strong&gt;Microsoft Excel 2003&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style='margin-left: 52pt'&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;On the &lt;strong&gt;Tools&lt;/strong&gt; menu, click &lt;strong&gt;Customize&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click the &lt;strong&gt;Toolbars&lt;/strong&gt; tab, and then click to select the &lt;strong&gt;PivotTable&lt;/strong&gt; check box. The &lt;strong&gt;PivotTable&lt;/strong&gt; toolbar is displayed. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click &lt;strong&gt;Close&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;On the &lt;strong&gt;PivotTable&lt;/strong&gt; toolbar, click the &lt;strong&gt;Toolbar Options&lt;/strong&gt; arrow. This arrow appears on the right end of the toolbar. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click &lt;strong&gt;Add or Remove Buttons&lt;/strong&gt;, click &lt;strong&gt;PivotTable&lt;/strong&gt;, and then select &lt;strong&gt;Generate GetPivotData&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click in the worksheet. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click the &lt;strong&gt;Generate GetPivotData&lt;/strong&gt; button that now appears on the &lt;strong&gt;PivotTable&lt;/strong&gt; toolbar. When you click this button, it is turned on or off. If the button is selected, the GETPIVOTDATA formula is automatically generated.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:10pt'&gt;&lt;strong&gt;Excel 2007&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style='margin-left: 52pt'&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click the &lt;strong&gt;Microsoft Office Button&lt;/strong&gt;, click &lt;strong&gt;Excel Options&lt;/strong&gt;, and then click the &lt;strong&gt;Formulas&lt;/strong&gt; tab. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Make sure that the &lt;strong&gt;Use GetPivotData functions for PivotTable references&lt;/strong&gt; check box is selected, and then click &lt;strong&gt;OK&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click in the worksheet. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Click the &lt;strong&gt;Options&lt;/strong&gt; tab, click &lt;strong&gt;Options&lt;/strong&gt; in the &lt;strong&gt;PivotTable&lt;/strong&gt; group, and then click to clear the &lt;strong&gt;Generate GetPivotData&lt;/strong&gt; check box.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-8915061626299458143?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/8915061626299458143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=8915061626299458143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8915061626299458143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8915061626299458143'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/09/get-rid-of-getpivotdata-option.html' title='Get rid of GETPIVOTDATA Option'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-8017936949009864350</id><published>2009-05-15T05:19:00.000-07:00</published><updated>2009-05-15T05:25:35.949-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export'/><category scheme='http://www.blogger.com/atom/ns#' term='VBA'/><category scheme='http://www.blogger.com/atom/ns#' term='Chart'/><title type='text'>Code to export chart as Image to local drive</title><content type='html'>You can export the chart to your desired location through following code:&lt;br /&gt;&lt;br /&gt;Sub exportChart()&lt;br /&gt;Dim cht as chart&lt;br /&gt;Set Cht = Worksheets("Charts").ChartObjects(1).Chart Cht.Export Filename:="C:\Temp\MyChart.gif", FilterName:="GIF"&lt;br /&gt;End Sub&lt;br /&gt;---------------------&lt;br /&gt;I use this code to export chart and load them as image in Userform which looks pretty good for presentation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-8017936949009864350?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/8017936949009864350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=8017936949009864350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8017936949009864350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8017936949009864350'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/05/code-to-export-chart-as-image-to-local.html' title='Code to export chart as Image to local drive'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-5994427879005007612</id><published>2009-03-21T00:09:00.001-07:00</published><updated>2009-03-21T00:11:45.097-07:00</updated><title type='text'>Hide all worksheets except Activeworksheet</title><content type='html'>Sometimes back I posted how to Unhide all the worksheets.&lt;br /&gt;Here is the code to Hide all the sheets except the one which is Active...&lt;br /&gt;--------------------------------------------------------&lt;br /&gt;Sub Hide()&lt;br /&gt;'Hide all sheets macro by Saalim&lt;br /&gt;Dim wkst As Worksheet&lt;br /&gt;Dim sht1 As Stringsht1 = ActiveSheet.Name&lt;br /&gt;For Each wkst In Worksheets&lt;br /&gt;wkst.Activate&lt;br /&gt;If ActiveSheet.Name &lt;&gt; sht1 Then&lt;br /&gt;wkst.Visible = False&lt;br /&gt;End If&lt;br /&gt;Next wkst&lt;br /&gt;End Sub&lt;br /&gt;-------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-5994427879005007612?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/5994427879005007612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=5994427879005007612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/5994427879005007612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/5994427879005007612'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/03/hide-all-worksheets-except.html' title='Hide all worksheets except Activeworksheet'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-1674526663340835852</id><published>2009-01-05T03:08:00.001-08:00</published><updated>2009-01-05T03:08:54.051-08:00</updated><title type='text'>Row Counter for Excel</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;I always wondered if there is a way to count the number of rows that contains information leaving blanks. I was able to do it with following code:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Assume that your data starts from Cell A6. Run the following code:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Sub rowCount()&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 36pt'&gt;Range("A6").Select&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 36pt'&gt;rowcounter = 6&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 36pt'&gt;ActiveCell.Offset(1, 0).Select&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 36pt'&gt;Do Until ActiveCell = ""&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 72pt'&gt;rowcounter = rowcounter + 1&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 72pt'&gt;ActiveCell.Offset(1, 0).Select&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 36pt'&gt;Loop&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify; margin-left: 36pt'&gt;MsgBox ("There are " &amp;amp; rowcounter &amp;amp; " number of rows")&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;End Sub&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Hope this will help&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-1674526663340835852?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/1674526663340835852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=1674526663340835852' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/1674526663340835852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/1674526663340835852'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2009/01/row-counter-for-excel.html' title='Row Counter for Excel'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-3016966198328847448</id><published>2008-09-01T04:29:00.000-07:00</published><updated>2008-09-01T04:35:59.028-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Format'/><category scheme='http://www.blogger.com/atom/ns#' term='Numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='Cells'/><title type='text'>How to write amounts in Lakhs and Crores (Indian Format)?</title><content type='html'>Have you ever wondered as to how to write amounts in lakhs and crores instead of millions and billions ie 10,00,00,000 format.&lt;br /&gt;Its quite simple :&lt;br /&gt;Right Click the cell you want to format &gt;&gt; format &gt;&gt; Number &gt;&gt; Click Custome (last item on the left hand side Menu).Now type one of the below syntax formats in the "Type:" Text box &gt;&gt; Click OK.&lt;br /&gt;Without decimal : 99,99,99,999[&gt;=10000000]#","##","##","###;[&gt;=100000]#","##","###;#,###&lt;br /&gt;With decimal : 99,99,99,999.00[&gt;=10000000]#","##","##","##0.00;[&gt;=100000]#","##","##0.00;#,##0.00&lt;br /&gt;And now you get amounts in Indian currency format.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-3016966198328847448?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/3016966198328847448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=3016966198328847448' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3016966198328847448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3016966198328847448'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/09/how-to-write-amounts-in-lakhs-and.html' title='How to write amounts in Lakhs and Crores (Indian Format)?'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-7325402959819587171</id><published>2008-08-17T03:00:00.000-07:00</published><updated>2008-08-17T03:03:03.000-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Functions'/><title type='text'>INFO function</title><content type='html'>=Info() can be used to get information about the location of the file, information about the OS, excel version, about the memory status etc....&lt;br /&gt;&lt;br /&gt;Here are some examples:&lt;br /&gt;=info("directory") Path of the current directory or folder.&lt;br /&gt;=info("memavail") Amount of memory available, in bytes.&lt;br /&gt;=info("memused") Amount of memory being used for data.&lt;br /&gt;=info("numfile") Number of active worksheets in the open workbooks.&lt;br /&gt;=info("origin") Absolute A1-style reference, as text, prepended with "$A:" for Lotus 1-2-3 release 3.x compatibility. Returns the cell reference of the top and leftmost cell visible in the window, based on the current scrolling position.&lt;br /&gt;=info("osversion") Current operating system version, as text.&lt;br /&gt;=info("recalc") Current recalculation mode; returns "Automatic" or "Manual".&lt;br /&gt;=info("release") Version of Microsoft Excel, as text.&lt;br /&gt;=info("system") Name of the operating environment:&lt;br /&gt;=info("totmem") Total memory available, including memory already in use, in bytes.&lt;br /&gt;&lt;br /&gt;Where Can it be used?&lt;br /&gt;=info("directory") function can be used to get the path of the file in your reports.&lt;br /&gt;=info("recalc") can be used to check whether the calculation status is 'Manual' or 'Automatic'.&lt;br /&gt;&lt;br /&gt;Now there are other ways to get most of the above information, this formula is one more option that you have.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-7325402959819587171?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/7325402959819587171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=7325402959819587171' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/7325402959819587171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/7325402959819587171'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/08/info-function.html' title='INFO function'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-1302611905452316710</id><published>2008-08-07T06:12:00.001-07:00</published><updated>2008-08-07T06:21:16.620-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Text functions'/><category scheme='http://www.blogger.com/atom/ns#' term='Formula'/><title type='text'>Some Text functions</title><content type='html'>We will see some Text functions which can be very useful:&lt;br /&gt;1. TEXT() :&lt;br /&gt;This functions formats a number and convert it to Text. For E.g., Cell A1 is having date 1/1/2009. We can convert this date to text in whatever format we like; e.g., TEXT(A1,"MMDDYYYY). The result will be 01012009. Likewise we can convert a number to text like 100 to 100.00 (Text(A1,"0.00"). Note that you may have to specify the decimals.&lt;br /&gt;2. TRIM():&lt;br /&gt;Trim function is used to remove extra spaces from text. Syntax: TRIM("Hello  "). Result will be "Hello".&lt;br /&gt;3. LEN():&lt;br /&gt;LEN function is used to know the length of a text or character. It will count the spaces too.&lt;br /&gt;4. UPPER():&lt;br /&gt;This function is used to convert a text to UPPER case.&lt;br /&gt;5. LOWER()&lt;br /&gt;This function is used to convert a text to LOWER case.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-1302611905452316710?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/1302611905452316710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=1302611905452316710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/1302611905452316710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/1302611905452316710'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/08/some-text-functions.html' title='Some Text functions'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-4172877550948313286</id><published>2008-08-03T23:54:00.000-07:00</published><updated>2008-08-03T23:55:28.492-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VBA'/><category scheme='http://www.blogger.com/atom/ns#' term='Macros'/><title type='text'>When I open a workbook it prompts me to enable macros; although there are no macros in the file. Why?</title><content type='html'>Whenever Macros are recorded in a workbook, Modules get created. These modules house the VBA Codes. So whenever Excel detects any module in a workbook it prompts you to enable macros even though there might not be any macros in he file.&lt;br /&gt;Example: Sometimes we try our hand on Macros and then later delete these macros. Even though there are no Macros, Excel gives an Enable Macros prompt on opening the file because the file still houses the Module(s) (including Class Module(s) if any) which have not been removed. So if you are wondering why this popup when there are no macros? All you have to do is go to the VBA Screen (Alt+F11) right click the Module(s) and delete them; this will get rid of the Enable Macros prompt.&lt;br /&gt;Note : Some people get the impression that this popup appears for macros have been used on the workbook in past. However this is not true as running macros from personal.xls or an addin or any other file will neither create VBA code (in sheets or modules) nor will it create new modules. Hence mere running of macros ona file will not result in ‘Enable Macros prompt’ when you open them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-4172877550948313286?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/4172877550948313286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=4172877550948313286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/4172877550948313286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/4172877550948313286'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/08/when-i-open-workbook-it-prompts-me-to.html' title='When I open a workbook it prompts me to enable macros; although there are no macros in the file. Why?'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-3413029373417412613</id><published>2008-08-03T02:43:00.000-07:00</published><updated>2008-08-03T02:44:56.944-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Worksheets'/><category scheme='http://www.blogger.com/atom/ns#' term='Links'/><title type='text'>Phantom Links</title><content type='html'>&lt;strong&gt;What are phantom links?&lt;/strong&gt;&lt;br /&gt;A Phantom link is a link which does not exist and hence can not be updated. Most of the phantom links arise when someone sends you a workbook which is linked to other workbooks to which you do not have access. It's called a phantom link ‘cos the reference does not exist and hence can not be updated.&lt;br /&gt;It will also arise when you change file name of one of the linked workbooks. The file which contained link can not find the old file name, making the link phantom. In such case excel prompts you to update the link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-3413029373417412613?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/3413029373417412613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=3413029373417412613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3413029373417412613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3413029373417412613'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/08/phantom-links.html' title='Phantom Links'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-8345652586144939964</id><published>2008-07-29T07:06:00.000-07:00</published><updated>2008-07-29T07:11:09.161-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VBA'/><category scheme='http://www.blogger.com/atom/ns#' term='Unhide Sheets'/><title type='text'>Unhide all sheets thro Macro</title><content type='html'>You would have noticed that we cannot select all the worksheets from the Unhide options. This becomes tougher when we have unhide multiple sheets. We have to choose each sheet and then unhide them. Easiest way to unhide all the sheets is to use following VBA code:&lt;br /&gt;'-------VBA Code---------------&lt;br /&gt;Sub Unhide()&lt;br /&gt;'Unhide all sheets macro  by Saalim&lt;br /&gt;Dim wkst As Worksheet&lt;br /&gt;For Each wkst In Worksheets&lt;br /&gt;wkst.Visible = xlSheetVisible&lt;br /&gt;Next wkst&lt;br /&gt;End Sub&lt;br /&gt;'------------Code End----------------&lt;br /&gt;This way we can save a lot of time on manually unhiding the sheets.&lt;br /&gt;&lt;br /&gt;-Saalim&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-8345652586144939964?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/8345652586144939964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=8345652586144939964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8345652586144939964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/8345652586144939964'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/07/unhide-all-sheets-thro-macro.html' title='Unhide all sheets thro Macro'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-3531056066725999541</id><published>2008-07-27T23:05:00.000-07:00</published><updated>2008-07-27T23:08:06.615-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Query'/><category scheme='http://www.blogger.com/atom/ns#' term='import'/><title type='text'>Web Query</title><content type='html'>Most of the people wonder if they can download a web page to Excel worksheet. It is absolutely possible with a web query. Here are the steps to do that:&lt;br /&gt;1. Data &gt;&gt; Import External Data &gt;&gt; New Web Query.&lt;br /&gt;2. In the resultant window input the webpage address from which you want to update the rate and click go.&lt;br /&gt;3. Once the page is loaded, Check the fields (having green arrow marks) that contain the rates and click import.&lt;br /&gt;4. The data is now imported into excel.&lt;br /&gt;5. Now all you have to do is refresh this query. To do this right click the area where the data has been imported and you have various options including refresh. (I usually prefer to have a macro for this...)&lt;br /&gt;6. There are other settings which you can access by right clicking the data area and selecting 'Data Range Properties'.&lt;br /&gt;&lt;br /&gt;-Saalim&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-3531056066725999541?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/3531056066725999541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=3531056066725999541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3531056066725999541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3531056066725999541'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/07/web-query.html' title='Web Query'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-1810010982080169923</id><published>2008-07-27T04:12:00.000-07:00</published><updated>2008-07-27T04:14:40.706-07:00</updated><title type='text'>Default No. of Worksheets</title><content type='html'>Do you know that we can change the default no. of worksheets in a new workbook from to any numbers?&lt;br /&gt;&lt;br /&gt;To do this:&lt;br /&gt;1. Go to Tools&lt;br /&gt;2. Select Options&lt;br /&gt;3. Go to General Tab&lt;br /&gt;4. Here you can specify the no. of sheets for a new workbook. (default should be 3)&lt;br /&gt;&lt;br /&gt;Hope this helps!!&lt;br /&gt;&lt;br /&gt;-Saalim&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-1810010982080169923?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/1810010982080169923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=1810010982080169923' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/1810010982080169923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/1810010982080169923'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/07/default-no-of-worksheets.html' title='Default No. of Worksheets'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2124961622773482541.post-3919921372835558763</id><published>2008-07-16T06:11:00.000-07:00</published><updated>2008-07-16T06:12:41.140-07:00</updated><title type='text'>Change in my blog contents</title><content type='html'>I have decided to upload some useful stuffs and will try to share my knowledge on MS Excel from now onwards..... :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2124961622773482541-3919921372835558763?l=md-saalim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://md-saalim.blogspot.com/feeds/3919921372835558763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2124961622773482541&amp;postID=3919921372835558763' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3919921372835558763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2124961622773482541/posts/default/3919921372835558763'/><link rel='alternate' type='text/html' href='http://md-saalim.blogspot.com/2008/07/change-in-my-blog-contents.html' title='Change in my blog contents'/><author><name>Saalim</name><uri>http://www.blogger.com/profile/12072399127877847391</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_LfpXsg5dIak/SJsCPvVlMeI/AAAAAAAAABg/g2xa8lEgvoM/s1600-R/Saalim.JPG'/></author><thr:total>2</thr:total></entry></feed>
