Writing Word Macros

Overview

Many Microsoft Word users and VBA programmers don't realize the extensive opportunities that exist when Word's Object Model is accessed using Visual Basic for Applications (VBA), which replaced WordBasic in conjunction with the release of Word 97. By creating what is commonly called a "Word Macro" you can automate many features available in Word. Writing Word Macros (previously titled Learning Word Programming is the introduction to Word VBA ...

See more details below
Paperback (Second Edition)
$43.24
BN.com price
(Save 13%)$49.99 List Price
Other sellers (Paperback)
  • All (15) from $3.65   
  • New (6) from $31.08   
  • Used (9) from $3.65   
Sending request ...

Overview

Many Microsoft Word users and VBA programmers don't realize the extensive opportunities that exist when Word's Object Model is accessed using Visual Basic for Applications (VBA), which replaced WordBasic in conjunction with the release of Word 97. By creating what is commonly called a "Word Macro" you can automate many features available in Word. Writing Word Macros (previously titled Learning Word Programming is the introduction to Word VBA that allows you to do these things and more, including:

  • Create custom pop-up menus
  • Automatically create tables from lists
  • Append one document to the end (or beginning) of another
  • Create a toggle switch to change a document from draft to final copy by adding or removing a watermark in the header
  • Generate reports using data from other applications

Not intended to be an encyclopedia of Word programming, Writing Word Macros provides Word users, as well as programmers who are not familiar with the Word object model with a solid introduction to writing VBA macros and programs. In particular, the book focuses on:
  • The Visual Basic Editor and the Word VBA programming environment. Word features a complete and very powerful integrated development environment for writing, running, testing, and debugging VBA macros.
  • The VBA programming language (which is the same programming language used by Microsoft Excel, Access, and PowerPoint, as well as the retail editions of Visual Basic).
  • The Word object model. Word exposes nearly all of its functionality through its object model, which allows Word to be controlled programmatically using VBA. While the Word object model, with almost 200 objects, is the largest among the Office applications, readers need be familiar with only a handful of objects. Writing Word Macros focuses on these essential objects, but includes a discussion of a great many more objects as well.
Writing Word Macros is written in a terse, no-nonsense manner that is characteristic of Steven Roman's straightforward, practical approach. Instead of a slow-paced tutorial with a lot of hand-holding, Roman offers the essential information about Word VBA that you must master to program effectively. This tutorial is reinforced by interesting and useful examples that solve practical programming problems, like generating tables of a particular format, managing shortcut keys, creating fax cover sheets, and reformatting documents.
Writing Word Macros is the book you need to dive into the basics of Word VBA programming, enabling you to increase your power and productivity when using Microsoft Word.

Illustrates how to take advantage of using VBA in Word, with a no-nonsense introduction to Word Macros and VBA programming for power users and aspiring beginners.

Read More Show Less

Product Details

  • ISBN-13: 9781565927254
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 10/15/1999
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 412
  • Sales rank: 1,119,500
  • Product dimensions: 7.01 (w) x 9.17 (h) x 0.84 (d)

Meet the Author

Steven Roman, Ph.D., is a professor emeritus of mathematics at the California State University, Fullerton. His previous books with O'Reilly include "Access Database Design and Programming", "Writing Excel Macros with VBA", and "Win32 API Programming with Visual Basic".

Read More Show Less

Table of Contents

  • Dedication
  • Preface
  • Chapter 1: Introduction
  • Chapter 2: Preliminaries
  • The VBA Environment
    • Chapter 3: The Visual Basic Editor, Part I
    • Chapter 4: The Visual Basic Editor, Part II


  • The VBA Programming Language
    • Chapter 5: Variables, Data Types, and Constants
    • Chapter 6: Functions and Subroutines
    • Chapter 7: Built-in Functions and Statements
    • Chapter 8: Control Statements


  • Objects and Object Models
    • Chapter 9: Object Models
    • Chapter 10: The Word Object Model
    • Chapter 11: The Application Object
    • Chapter 12: The Document Object
    • Chapter 13: The Section and HeaderFooter Objects
    • Chapter 14: The Range and Selection Objects
    • Chapter 15: The Find and Replace Objects
    • Chapter 16: The Table Object
    • Chapter 17: The List Object
    • Chapter 18: Shortcut Key Bindings
    • Chapter 19: Built-in Dialog Objects
    • Chapter 20: Custom Dialog Boxes
    • Chapter 21: Menus and Toolbars


  • Appendixes
    • Programming Word from Another Application
    • The Shape Object
    • Getting the Installed Printers
    • High-Level and Low-Level Languages


  • Colophon

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)