ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Jobs
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


Office applications Toolkit

Easy Office application development

Bruce Maples

Published: 05 Nov 2002 12:23 GMT

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Even if you aren't a professional code jockey, this version of Office may be something you'll want to consider. In fact, there's one feature, the Code Librarian, that I think may justify the purchase of MOD on its merits alone. Read on and see what you think.

All features great and small
Before we look at some of the neat features in MOD, let's clear up one thing it doesn't have -- a newer or better version of Office proper. The releases of the Office applications themselves are the same as those you get with Office Premium.

On the development side, though, you get a slew of features, tools, and add-ins. Some are small and/or obscure; others you'll use every day. For the record, here is a list of all the MOD features, although I won't cover all of them here.

Let's get professional
I'm always appreciative of the IT professional who takes the time to insert a comment block at the top of a procedure documenting the purpose, editing date, variables, and history of the procedure. With MOD, though, it's so easy to insert such a block that I'll have to stop being impressed. By simply clicking the Code Commenter on the Add-Ins menu in the VBA Editor, you get the dialog box shown in Figure A.

Figure A
If you don't see Code Commenter in the available add-ins, it's either not installed or not loaded. See "Where are my tools?" at the end of this article for more information.

You can add comments to the current procedure, to all the procedures in the current module, or to all procedures in the current project. The comments are based on a simple text template, which you can edit (more on this in a moment). If you want, you can browse to a new template or take a look at the current template before you use it.

When you click OK, the Code Commenter inserts a comment block that looks something like this:

' Code Header inserted by the Procedure Header Add-In'
=============================================
' ThisDocument.junk'
---------------------------------------------
' Purpose
' Author : Bruce Maples, 08-17-2002
' Notes :
'---------------------------------------------
' Parameters
'-----------
'
'---------------------------------------------
' Returns:
'---------------------------------------------
' Revision History
'---------------------------------------------
' 08-17-2002 WBM:
'=============================================
' End Code Header block

Once the block is in place, it's up to you to fill in the blanks for Purpose, Notes, and Revision History.

If you click Show Template, you'll get a view window where you can examine the current template (Figure B). To modify the template to include the comments and fields you want in your projects, open it in Notepad and change it as you see fit.

Figure B

Next

Previous

1 2 3


  • Email
  • Trackback
  • Clip Link
  • Print friendlyPrint with Konica

Did you find this article useful?
85 out of 184 people found this useful


Full Talkback thread

0 comments


Company/Topic Alerts

Create a new alert from the list below:






Featured Talkback

In association with Intel
Why do so many (virtually all) software packages think that they are so important that they have to be started automatically every time the computer boots? What is the largest number of "speed access", "update check", "camera download" and whatever other background programs you have ever seen running? Of those, how many did you really need?

By: J.A. Watson

Read full story:
Annoying software: a rogues' gallery

Discussions

wydeboi wydeboi

Microsoft makes me cry

Monday 13 October 2008, 3:36 AM

3 comments
roger andre roger andre

Unwittingly Working For Google.

Sunday 12 October 2008, 10:49 PM

6 comments
roger andre roger andre

Skype Spying Debacle

Sunday 12 October 2008, 6:43 PM

1 comment

Vista Upgrade Blog

Vista - Still Running and Stable After...

Six weeks ago, when I wrote Renewed Adventures with Vista, I wondered if Microsoft had finally managed to fix it sufficiently that I wouldn't be forced to give up on it after a few... More

Post a comment

Official MS Windows 7 Bloggers

Check this out: http://blogs.msdn.com/e7...spx Its an official blog "Engineering Windows 7" Nothing. That's what is revealed. Until there is real... More

5 comments

Microsoft's Mojave just a desert vista

It didn't seem fair to wade into Microsoft's “Mojave Experiment” advert quite so soon after the flat earth incident. But The Economist has no such qualms: in this week's issue, it wonders... More

6 comments