<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VBA%2FExcel%2FAccess%2FWord%2FApplication%2FApplication</id>
		<title>VBA/Excel/Access/Word/Application/Application - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VBA%2FExcel%2FAccess%2FWord%2FApplication%2FApplication"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VBA/Excel/Access/Word/Application/Application&amp;action=history"/>
		<updated>2026-04-06T00:11:43Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VBA/Excel/Access/Word/Application/Application&amp;diff=1076&amp;oldid=prev</id>
		<title> в 16:33, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VBA/Excel/Access/Word/Application/Application&amp;diff=1076&amp;oldid=prev"/>
				<updated>2010-05-26T16:33:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:33, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VBA/Excel/Access/Word/Application/Application&amp;diff=1077&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VBA/Excel/Access/Word/Application/Application&amp;diff=1077&amp;oldid=prev"/>
				<updated>2010-05-26T12:46:17Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Application.InchesToPoints==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Macro1_Version2()&lt;br /&gt;
    With ActiveSheet.PageSetup&lt;br /&gt;
        .LeftMargin = Application.InchesToPoints(1.5)&lt;br /&gt;
        .RightMargin = Application.InchesToPoints(1.5)&lt;br /&gt;
        .TopMargin = Application.InchesToPoints(1.5)&lt;br /&gt;
        .BottomMargin = Application.InchesToPoints(1.5)&lt;br /&gt;
        .HeaderMargin = Application.InchesToPoints(1)&lt;br /&gt;
        .FooterMargin = Application.InchesToPoints(1)&lt;br /&gt;
    End With&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Application.Path==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub main()&lt;br /&gt;
    MsgBox Application.Path &amp;amp; &amp;quot;\EXCEL.EXE&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Benchmark with/without setting the Application.ScreenUpdating==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub WriteReadRange()&lt;br /&gt;
    Dim MyArray()&lt;br /&gt;
    Dim Time1 As Date&lt;br /&gt;
    Range(&amp;quot;A:A&amp;quot;).ClearContents&lt;br /&gt;
    NumElements = 1000&lt;br /&gt;
    If NumElements = &amp;quot;&amp;quot; Then Exit Sub&lt;br /&gt;
    ReDim MyArray(1 To NumElements)&lt;br /&gt;
    For i = 1 To NumElements&lt;br /&gt;
        MyArray(i) = i&lt;br /&gt;
    Next i&lt;br /&gt;
    &lt;br /&gt;
    Application.ScreenUpdating = False&lt;br /&gt;
    Time1 = Timer&lt;br /&gt;
    For i = 1 To NumElements&lt;br /&gt;
        Cells(i, 1) = i&lt;br /&gt;
    Next i&lt;br /&gt;
    WriteTime = Format(Timer - Time1, &amp;quot;00:00&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
    Time1 = Timer&lt;br /&gt;
    For i = 1 To NumElements&lt;br /&gt;
        MyArray(i) = Cells(i, 1)&lt;br /&gt;
    Next i&lt;br /&gt;
    ReadTime = Format(Timer - Time1, &amp;quot;00:00&amp;quot;)&lt;br /&gt;
    Application.ScreenUpdating = True&lt;br /&gt;
    &lt;br /&gt;
    Debug.Print &amp;quot;Write: &amp;quot; &amp;amp; WriteTime&lt;br /&gt;
    Debug.Print &amp;quot;Read: &amp;quot; &amp;amp; ReadTime&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CalculationVersion: Right four digits indicate the version of the calculation engine whereas the digits to the left indicate the major version of Excel.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.CalculationVersion &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Clearing the Recently Used Files List==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub clear()&lt;br /&gt;
    Dim myMax As Long&lt;br /&gt;
    With Application.RecentFiles&lt;br /&gt;
        myMax = .Maximum&lt;br /&gt;
        .Maximum = 0&lt;br /&gt;
        .Maximum = myMax&lt;br /&gt;
    End With&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Cursors Available to Use with the Cursor Property==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub ViewCursors() &lt;br /&gt;
    Application.Cursor = xlNorthwestArrow &lt;br /&gt;
    MsgBox &amp;quot;Do you like the xlNorthwestArrow? Hover over the worksheet to see it.&amp;quot; &lt;br /&gt;
    Application.Cursor = xlIBeam &lt;br /&gt;
    MsgBox &amp;quot;How about the xlIBeam? Hover over the worksheet to see it.&amp;quot; &lt;br /&gt;
    Application.Cursor = xlWait &lt;br /&gt;
    MsgBox &amp;quot;How about xlWait? Hover over the worksheet to see it.&amp;quot; &lt;br /&gt;
    Application.Cursor = xlDefault &lt;br /&gt;
    MsgBox &amp;quot;Back to the default...&amp;quot; &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demonstration of Window size Properties==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub GetWindowInfo() &lt;br /&gt;
    Dim lState As Long &lt;br /&gt;
    Dim sInfo As String &lt;br /&gt;
    Dim lResponse As Long &lt;br /&gt;
    &amp;quot; Prepare message to be displayed &lt;br /&gt;
    sInfo = sInfo &amp;amp; &amp;quot;Usable Height = &amp;quot; &amp;amp; Application.UsableHeight &amp;amp; vbCrLf &lt;br /&gt;
    sInfo = sInfo &amp;amp; &amp;quot;Usable Width = &amp;quot; &amp;amp; Application.UsableWidth &amp;amp; vbCrLf &lt;br /&gt;
    sInfo = sInfo &amp;amp; &amp;quot;Height = &amp;quot; &amp;amp; Application.Height &amp;amp; vbCrLf &lt;br /&gt;
    sInfo = sInfo &amp;amp; &amp;quot;Width = &amp;quot; &amp;amp; Application.Width &amp;amp; vbCrLf &amp;amp; vbCrLf &lt;br /&gt;
    lResponse = MsgBox(sInfo, vbYesNo, &amp;quot;Window Info&amp;quot;) &lt;br /&gt;
    &amp;quot; Minimize window if user clicked Yes &lt;br /&gt;
    If lResponse = vbYes Then &lt;br /&gt;
        Application.WindowState = xlMinimized &lt;br /&gt;
    End If &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Display application in full screen mode==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub FullScreen_Icon()&lt;br /&gt;
  If Application.DisplayFullScreen Then&lt;br /&gt;
    Application.DisplayFullScreen = False&lt;br /&gt;
    Application.WindowState = xlMinimized&lt;br /&gt;
  Else&lt;br /&gt;
    Application.DisplayFullScreen = True&lt;br /&gt;
  End If&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Execute the next statement to set the calculation mode to automatic:==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub calcu()&lt;br /&gt;
    Application.Calculation = xlCalculationAutomatic&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get application user name==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Private Sub CommandButton1_Click()&lt;br /&gt;
    MsgBox &amp;quot;Hello &amp;quot; &amp;amp; Application.UserName&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get window state information==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub GetWindowInfo() &lt;br /&gt;
    Dim lState As Long &lt;br /&gt;
    lState = Application.WindowState &lt;br /&gt;
    Select Case lState &lt;br /&gt;
        Case xlMaximized &lt;br /&gt;
            Debug.Print &amp;quot;Window is maximized.&amp;quot;&lt;br /&gt;
        Case xlMinimized &lt;br /&gt;
            Debug.Print  &amp;quot;Window is minimized.&amp;quot; &lt;br /&gt;
        Case xlNormal &lt;br /&gt;
            Debug.Print  &amp;quot;Window is normal.&amp;quot; &amp;amp; vbCrLf &lt;br /&gt;
    End Select &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==If you need to avoid user interaction you can turn off alerts in Excel by setting the DisplayAlerts property of the Application object to False before deleting the worksheet and then turning alerts back on again:==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub alert()&lt;br /&gt;
    Application.DisplayAlerts = False&lt;br /&gt;
    myWorkbook.Sheets(&amp;quot;Summary&amp;quot;).Delete&lt;br /&gt;
    Application.DisplayAlerts = True&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Listing Application CommandBars==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Inventory()&lt;br /&gt;
    Dim cb As commandBar&lt;br /&gt;
    For Each cb In Application.rumandBars&lt;br /&gt;
        Debug.Print cb.name&lt;br /&gt;
        Debug.Print cb.Index&lt;br /&gt;
        Debug.Print cb.BuiltIn&lt;br /&gt;
        Debug.Print cb.Enabled&lt;br /&gt;
        Debug.Print cb.Visible&lt;br /&gt;
        Debug.Print cb.Controls.Count&lt;br /&gt;
    Next&lt;br /&gt;
    Set cb = Nothing&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make sure that the help file can be located:==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub GetHelp()&lt;br /&gt;
    Path = ThisWorkbook.Path&lt;br /&gt;
    Application.Help Path &amp;amp; &amp;quot;\USER.HLP&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MemoryFree Returns the amount of memory in bytes that Excel is allowed to use, not including memory already in use.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.MemoryFree &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MemoryTotal Returns the total amount of memory, in bytes, that Excel can use. It includes memory that is already in use. It is the sum of MemoryFree and MemoryUsed.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.MemoryTotal &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MemoryUsed Returns the amount of memory, in bytes, that Excel is currently using.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment()     &lt;br /&gt;
    Debug.Print Application.MemoryUsed &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OperatingSystem Returns the name and version of the Operating System.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.OperatingSystem &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==OrganizationName Returns the name of the organization to which the product is registered.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.OrganizationName &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Performance Implications of Screen Updating==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub TimeScreenUpdating() &lt;br /&gt;
    Dim dResult As Double &lt;br /&gt;
    dResult = TestScreenUpdating(True) &lt;br /&gt;
    MsgBox Format(dResult, &amp;quot;0.00&amp;quot;) &amp;amp; &amp;quot; seconds.&amp;quot;, vbOKOnly &lt;br /&gt;
    dResult = TestScreenUpdating(False) &lt;br /&gt;
    MsgBox Format(dResult, &amp;quot;0.00&amp;quot;) &amp;amp; &amp;quot; seconds.&amp;quot;, vbOKOnly &lt;br /&gt;
End Sub &lt;br /&gt;
Function TestScreenUpdating(bUpdatingOn As Boolean) As Double &lt;br /&gt;
    Dim nRepetition As Integer &lt;br /&gt;
    Dim ws As Worksheet &lt;br /&gt;
    Dim dStart As Double &lt;br /&gt;
    dStart = Timer &lt;br /&gt;
    Application.ScreenUpdating = bUpdatingOn &lt;br /&gt;
    For nRepetition = 1 To 250 &lt;br /&gt;
        For Each ws In ThisWorkbook.Worksheets &lt;br /&gt;
            ws.Activate &lt;br /&gt;
        Next &lt;br /&gt;
    Next &lt;br /&gt;
    Application.ScreenUpdating = True &lt;br /&gt;
    TestScreenUpdating = Timer - dStart &lt;br /&gt;
    Set ws = Nothing &lt;br /&gt;
End Function &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pick the Perfect Location with GetSaveAsFilename==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub SimpleGetSaveAsFilename() &lt;br /&gt;
    Dim sFile As String &lt;br /&gt;
    sFile = Application.GetSaveAsFilename &lt;br /&gt;
    Debug.Print sFile  &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Quitting Application==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub quit()&lt;br /&gt;
    Application.Quit&lt;br /&gt;
End Sub&lt;br /&gt;
          &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting a Default File Location==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub def()&lt;br /&gt;
    Application.DefaultFilePath = &amp;quot;\\server3\users\mjones\files&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Specifying the proper Excel version: Warn users who attempt to open the add-in using Excel 97==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub CheckVersion()&lt;br /&gt;
    If Val(Application.Version) &amp;lt; 9 Then&lt;br /&gt;
        MsgBox &amp;quot;This works only with Excel 2000 or later&amp;quot;&lt;br /&gt;
    End If&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start Access==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Start()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftAccess&lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start Foxpro==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Start()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftFoxPro&lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start mail client==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Start()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftMail&lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start Power point==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Start()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftPowerPoint &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start Project==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Start()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftProject&lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start schedule==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub Start()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftSchedulePlus&lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==start word==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub StartWord()&lt;br /&gt;
    Application.ActivateMicrosoftApp xlMicrosoftWord&lt;br /&gt;
End Sub  &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==System Information Available Using Application Object Properties==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.CalculationVersion &lt;br /&gt;
End Sub &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==To avoid these alert messages, insert the following VBA statement in your macro:==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub alert()&lt;br /&gt;
    Application.DisplayAlerts = False&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Toggles the calculation mode between manual and automatic and displays a message indicating the current mode:==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub ToggleCalcMode()&lt;br /&gt;
    Select Case Application.Calculation&lt;br /&gt;
        Case xlManual&lt;br /&gt;
            Application.Calculation = xlCalculationAutomatic&lt;br /&gt;
            MsgBox &amp;quot;Automatic Calculation Mode&amp;quot;&lt;br /&gt;
        Case xlAutomatic&lt;br /&gt;
            Application.Calculation = xlCalculationManual&lt;br /&gt;
            MsgBox &amp;quot;Manual Calculation Mode&amp;quot;&lt;br /&gt;
    End Select&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Turning off automatic calculation: Sets the Excel calculation mode to manual==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub cal()&lt;br /&gt;
    Application.Calculation = xlCalculationManual&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Turning off screen updating==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub update()&lt;br /&gt;
    Application.ScreenUpdating = False&lt;br /&gt;
    Application.ScreenUpdating = True&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==UserName Returns or sets the name of the current user.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.UserName &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use the Application object qualifier to set properties==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub appProperty()&lt;br /&gt;
    Application.Calculation = xlManual&lt;br /&gt;
    Application.EditDirectlyInCell = False&lt;br /&gt;
    Application.DefaultFilePath = &amp;quot;C:\My Documents&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using the StatusBar property to Display Information==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub TimeStatusBar()&lt;br /&gt;
    Dim dStart As Double&lt;br /&gt;
    Dim dResult As Double&lt;br /&gt;
    Dim bDisplayStatusBar As Boolean&lt;br /&gt;
    bDisplayStatusBar = Application.DisplayStatusBar&lt;br /&gt;
    Application.DisplayStatusBar = True&lt;br /&gt;
    dStart = timer&lt;br /&gt;
    TestStatusBar 1, False&lt;br /&gt;
    dResult = timer - dStart&lt;br /&gt;
    MsgBox Format(dResult, &amp;quot;0.00&amp;quot;) &amp;amp; &amp;quot; seconds.&amp;quot;, vbOKOnly&lt;br /&gt;
    dStart = timer&lt;br /&gt;
    TestStatusBar 1, True&lt;br /&gt;
    dResult = timer - dStart&lt;br /&gt;
    MsgBox Format(dResult, &amp;quot;0.00&amp;quot;) &amp;amp; &amp;quot; seconds.&amp;quot;, vbOKOnly&lt;br /&gt;
    dStart = timer&lt;br /&gt;
    TestStatusBar 5, True&lt;br /&gt;
    dResult = timer - dStart&lt;br /&gt;
    MsgBox Format(dResult, &amp;quot;0.00&amp;quot;) &amp;amp; &amp;quot; seconds.&amp;quot;, vbOKOnly&lt;br /&gt;
    Application.DisplayStatusBar = bDisplayStatusBar&lt;br /&gt;
End Sub&lt;br /&gt;
Sub TestStatusBar(nInterval As Integer, bUseStatusBar As Boolean)&lt;br /&gt;
    Dim lRow As Long&lt;br /&gt;
    Dim lLastRow As Long&lt;br /&gt;
    Dim ws As Worksheet&lt;br /&gt;
    Set ws = ThisWorkbook.Worksheets(1)&lt;br /&gt;
    lLastRow = ws.Rows.Count&lt;br /&gt;
    For lRow = 1 To lLastRow&lt;br /&gt;
        If lRow Mod nInterval = 0 Then&lt;br /&gt;
            If bUseStatusBar Then&lt;br /&gt;
                Application.StatusBar = &amp;quot;Processing row: &amp;quot; &amp;amp; lRow &amp;amp; _&lt;br /&gt;
                &amp;quot; of &amp;quot; &amp;amp; lLastRow &amp;amp; &amp;quot; rows.&amp;quot;&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
    Next&lt;br /&gt;
    Application.StatusBar = False&lt;br /&gt;
    Set ws = Nothing&lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Version Returns the version of Excel that is in use.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sub InspectTheEnvironment() &lt;br /&gt;
    Debug.Print Application.Version &lt;br /&gt;
End Sub&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>