Member Login

Login
No account yet? Register
 

Search GeoPrac

Site Sponsors

Even More News and Blog Posts!

New on GeoPrac.net, the Other News and Blogs page has had a major facelift. To supplement our regular GeoNews and Articles, we aggregate news feeds and blog entries from all over the web into one easy to browse source. Check it out!  

Become an Author

GeoPrac.net is a community site, we are only as good as the content our members contribute!

Whether it's a one time contribution, or a monthly or quarterly article, please consider becoming an author

Subscribe by Email

Subscribe to GeoPrac.net Headlines by Email. Powered by FeedBurner.com, Don't forget to follow instructions to verify your subscription!

Enter your email address:

RSS Feeds

To subscribe to GeoPrac.net headlines, use one of the buttons below. Or view other available feeds or read more about RSS.

Home arrow Articles arrow Browse by Category arrow Software and Spreadsheets arrow VBA and Excel for Engineers and Scientists
VBA and Excel for Engineers and Scientists - VBA Introduction Print E-mail
Written by Randy Post   
Thursday, 05 April 2007
Article Index
VBA Introduction
Getting Started
Your First VBA Code!
Digg!Reddit!
Del.icio.us!Google!
Facebook!Slashdot!
Technorati!StumbleUpon!
Newsvine!Furl!
Yahoo!Ma.gnolia!

VBA and Security

The first thing you will need to do before we get to any VBA coding is to check your security settings in Excel. You can do this by going to Tools-Macro-Security from the menu. You need to set it to MEDIUM, which compromises between asking you if you want to open spreadsheets that contain macros and not allowing VBA code to run at all.

 

Because of the risk of macro viruses, make sure you have a decent antivirus program and NEVER open a suspicious Microsoft Office document, especially from someone you don’t know!

 

Getting Started with VBA

The next thing you need to do is to start getting familiar with the various toolbars, menus, windows and other elements that you will need as you are writing VBA code. First, check out your Macro toolbar. You can turn it on by right-clicking on your toolbar area and checking it or you can simply use the Tools>Macro menu.

 

Once you find your Macro Toolbar or menu, launch the Visual Basic Editor (VBE) using the appropriate button or menu command. Notice a few important windows and areas.

The Menu Bar where you will find some important buttons like the play, stop, step into, and object browser buttons.


The Project Explorer where you manage multiple code modules etc. In this window, you will see that each open spreadsheet is listed. Any Add-ins (like Acrobat) that are running will also be displayed. You can expand the tree for each object. Each Excel worksheet, chart, code module, form or other object is listed here. This is where you manage the code and any user forms for your VBA project.



Trackback(0)
Comments (0)add comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security image
Write the displayed characters


busy
Last Updated ( Monday, 28 January 2008 )
 
< Prev

Site Sponsors

Users Online

No Users Online

Statistics

Members: 48
News: 308
Web Links: 36

GeoPrac.net © 2007 Randy Post unless noted.
Terms of Use | Copyright Info | Privacy Policy | Disclaimer | Sitemap

Other Randy Post Sites: RnRPost.com | NameDrawing.net 

Article Copyright

All content in the ARTICLES section of GeoPrac.net is copyrighted by their authors unless otherwise noted and reproduced here with permission. Refer to the copyright page or the terms of use for more information.