BrainDump
  Home arrow BrainDump arrow Developing Macro Commands in MS Excel
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Developing Macro Commands in MS Excel
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2009-08-20

    Table of Contents:
  • Developing Macro Commands in MS Excel
  • Macro Recorder
  • Excel Macro Command Example
  • Testing the Macro and Actual Application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Developing Macro Commands in MS Excel


    (Page 1 of 4 )

    In Microsoft Excel, repetitive and lengthy tasks significantly affect office productivity. For example, if you are assigned to do a spreadsheet analysis that requires manually performing repetitive operations such as copy and paste, sort, etc., this can take up a lot of your time. Fortunately, Excel macros can cut that time significantly.

    Anyway, what is an Excel macro?

    Macros are sets of instructions you give to the computer. Instead of doing the task yourself, you are asking Excel to do that job for you. To create macros, you need to provide Excel with instructions.

    With macros, very long and complicated jobs can appear to be very simple and easy. This increases your efficiency as an office worker, engineer or even data analyst.

    Security Issues and Requirements

    To make this tutorial appealing to the majority of Excel users around the world, I am focusing on MS Excel 2002. However, if you are using a more advanced version such as Excel 2007, this tutorial also applies to you, since they have very similar features.

    Excel macros deal with Visual Basic scripting, which has a history of security issues such as viruses. To make your computing environment secure before we start this tutorial, you need to take two very important precautionary measures.

    First, use only trusted macros. You can't just use any macros from persons you do not know or download anything from the Internet. Make sure you double check it, and that it is coming only from your trusted macro developers.

    Second, there will be times when security errors get displayed when you open the Excel workbook. This is due to the security level being used by the workbook. In order to adjust this, go to Tools -> Options -> Macro Security, and then under Security Level, set it to either “Medium” or “Low.” 

    Note that running a “Low” level of security is advisable only if you use files locally and are not mixing any macros from other untrusted developers. You should also make sure you have anti-virus software installed on your computer. However, to completely ignore all macro-related security errors, set it to “Low,” save the workbook, close Excel and open it again. Or if you happen to reopen your workbook with macros in it, just click “Enable Macros,” assuming you have already set the Macro Security Level to “Medium.”

    More BrainDump Articles
    More By Codex-M


     

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek