Getting Started with VBA

Total Page:16

File Type:pdf, Size:1020Kb

Getting Started with VBA 01 0789725150 Web 1 5/22/01 8:14 AM Page 1 BONUS WORD CHAPTER Getting Started with VBA In this chapter by Bill Ray What Is Visual Basic for Applications? 2 Reading and Editing Your Recorded VBA Code 4 Using the VBE to Create Accurate Code 15 Understanding Projects and Modules 19 Saving Changes to Your Macros 20 Understanding the VBA Help System 21 Troubleshooting 22 Using Copyright © 2001 01 0789725150 Web 1 5/22/01 8:14 AM Page 2 Bonus Word Chapter Getting Started with VBA 2 What Is Visual Basic for Applications? Visual Basic for Applications (VBA) is the main programming tool for automating the Microsoft Office family of applications. VBA is derived from one of the most widely used programming languages for personal computers: BASIC (short for Beginner’s All-purpose Symbolic Instruction Code). Earlier versions of many Microsoft applications used variations of BASIC as their macro language, but until recently, many of these languages had signifi- cant differences from one another. Microsoft had been working for years to alleviate this problem and unify the macro language offerings available for Office applications. Because Visual Basic is one of the most popular Windows application development lan- guages in the world and it allows developers to create standalone, executable Windows applications, many VB programmers wanted Microsoft to create an automation language for its Office suite that was based on the language. It certainly didn’t hurt that it was also a tool that they were already familiar with, and Microsoft listened. The result is Visual Basic for Applications (VBA), and it is the automation language used with Word, Excel, Outlook, Access, and PowerPoint. Besides the Office applications, other Microsoft programs, such as Project, use VBA. Microsoft has even licensed VBA for use in third-party applications. You can think of VBA as a subset of Visual Basic. Although VBA is a subset, it still offers awe- some programming power and a feature-rich development environment. VBA is a powerful programming environment, providing a full-featured programming lan- guage development environment. It is the latest in object-based programming, yet it remains easy to use. Microsoft has taken great effort to build online and context-sensitive help into the tools associated with VBA. VBA’s biggest advantage, perhaps, is its consistency from one application to another. After you learn to program in VBA in Word, you have a pretty good head start to programming in, for example, Excel or PowerPoint. In this scenario, all you have to do is learn the specific features for working with a spreadsheet or with presentation graphics. Is there any difference between a macro and a program? Not really. Macro has been the common name for the automation tools built into many programs ever when Lotus 1-2-3 and WordPerfect dominated the PC marketplace. By most definitions, any sequence of commands that give instructions to be carried out by a computer is a pro- gram. Give yourself credit: If you write macros, you’re a programmer! How VBA Relates to WordBasic For all versions of Word for Windows through Word 95 (also known as Word 7.0), Word’s macro language was WordBasic. VBA was introduced as Word’s macro language beginning with Word 97. Because WordBasic is also a dialect of the BASIC programming language, it has some similarity to VBA. However, there are substantial differences between the two languages, especially in the way that Word commands are performed in the two languages. Special Edition Using Microsoft Word 2002 © Que 2001 01 0789725150 Web 1 5/22/01 8:14 AM Page 3 What Is Visual Basic for Applications? 3 Although versions of Word since Word 97 (2000 and 2002) no longer directly support WordBasic, you don’t necessarily have to re-create your old macros from scratch when upgrading from an old version. When you open a Word 6 or Word 95 template in Word 2002, Word automatically translates the existing WordBasic macros into a format that VBA can use. You can even edit these converted macros if you need to make changes in their functionality. In the long run, you’ll probably want to convert your existing WordBasic macros to VBA to take fullest advantage of the newer features of Word 2002. When you open an existing Word 6 or Word 95 template in Word 2002, Word saves the template in the new file format, which can’t be read in the earlier Word versions. If you will be continuing to work in Word 6 or Word 95, make sure that you only work with copies of the original templates. Keep in mind that the automatic conversion of WordBasic macro code into VBA doesn’t always work perfectly, especially if your WordBasic macros are complex. Test your con- verted macros carefully to verify that they work the same way they did in WordBasic. If they don’t, you might have to edit the macros, or re-create them in VBA. When to Use VBA Although recorded macros can do just about anything in Word, it’s often useful to be able to edit macros or create new macros by writing your own VBA code. The following situa- tions are just a few examples: I You have recorded a macro that works well, but now you want to change the way it works without recording it again. I You want to prompt the user to input information, such as his name or a filename. I You want to display one of Word’s dialog boxes so that a user can make selections from the dialog box. I You want your macro to make logical decisions. For example, you can program a macro to function only if your current selection is in a table, or if the document is in Page Layout view. I You want to repeat an action many times. For example, a macro can apply header or footer formatting to each section in a long document. I You want to exchange data with other Office applications, or even perform actions using those applications. I A long, complex macro runs slowly, and you want to improve its performance. Special Edition Using Microsoft Word 2002 © Que 2001 01 0789725150 Web 1 5/22/01 8:14 AM Page 4 Bonus Word Chapter Getting Started with VBA 4 I You made a mistake while recording a macro, but you don’t want to throw away the whole macro. I The VBA macro recorder doesn’t always produce the most efficient VBA code. You can often improve the performance of your macros by editing the recorded code. VBA is a hosted language. To use it, you must be running a Visual Basic Editor (explained n the following section) from within a hosting application, such as Word or another Office program. Reading and Editing Your Recorded VBA Code The best way to get started with the Visual Basic Editor is to record a macro and then to study the code you’ve recorded. For example, you can record a macro that adds a place for your signature to the end of any document. Follow these steps to record the macro: 1. Open a document to use as a test document while you are recording the macro. 2. Select Tools, Macro, Record New Macro (or double-click the REC button on the status bar) to open the Record Macro dialog box. 3. Type Signature as the macro name and click OK. 4. Press Ctrl+End to move to the end of the document. 5. Press Enter twice to add a paragraph and a blank line. 6. Type Sincerely and then press Enter four times. 7. Type your name and press Enter. 8. Press Ctrl+I to turn on italic. 9. Type your title; then press Ctrl+I to turn off italic. 10. Press Enter to add another paragraph. 11. Click the Stop button or double-click the REC button on the status bar to turn off the macro recorder. ➔ To find more information about recording macros with Word 2002, see Chapter 28, “Recording and Running Visual Basic Macros,” p. 871. Now that you have recorded a macro, you can open the Visual Basic Editor to view the VBA code you just created. 1. Choose Tools, Macro, Macros to show the Macros dialog box. 2. Select the name of the macro you just recorded from the Macro Name list box. 3. Choose Edit to open the Visual Basic Editor, displaying the selected macro, as shown in Figure 1. Special Edition Using Microsoft Word 2002 © Que 2001 01 0789725150 Web 1 5/22/01 8:14 AM Page 5 Reading and Editing Your Recorded VBA Code 5 Project Explorer Standard Toolbar Figure 1 You can use the Visual Basic Editor to create, edit, debug, and manage your VBA macros. Properties Window Code Window Tip from If you don’t need to work on a particular existing macro, you can quickly activate the Bill Ray Visual Basic Editor by pressing Alt+F11 or by choosing Tools, Macros, Visual Basic Editor. The Visual Basic Editor (VBE) contains the common set of macro programming tools for editing VBA code in Office XP. All of Office XP’s applications use the VBE to create and edit VBA code. The VBE provides a wide variety of features to assist you in creating VBA macros: I A code editing window for viewing and editing VBA code I Form design tools for creating custom dialog boxes I Tools that enable you to organize your code and work with several projects and modules at once I Debugging tools to help you create and test complex macros Throughout the remainder of this chapter, you’ll learn about each of the tools available in the VBE.
Recommended publications
  • Liste Von Programmiersprachen
    www.sf-ag.com Liste von Programmiersprachen A (1) A (21) AMOS BASIC (2) A# (22) AMPL (3) A+ (23) Angel Script (4) ABAP (24) ANSYS Parametric Design Language (5) Action (25) APL (6) Action Script (26) App Inventor (7) Action Oberon (27) Applied Type System (8) ACUCOBOL (28) Apple Script (9) Ada (29) Arden-Syntax (10) ADbasic (30) ARLA (11) Adenine (31) ASIC (12) Agilent VEE (32) Atlas Transformatikon Language (13) AIMMS (33) Autocoder (14) Aldor (34) Auto Hotkey (15) Alef (35) Autolt (16) Aleph (36) AutoLISP (17) ALGOL (ALGOL 60, ALGOL W, ALGOL 68) (37) Automatically Programmed Tools (APT) (18) Alice (38) Avenue (19) AML (39) awk (awk, gawk, mawk, nawk) (20) Amiga BASIC B (1) B (9) Bean Shell (2) B-0 (10) Befunge (3) BANCStar (11) Beta (Programmiersprache) (4) BASIC, siehe auch Liste der BASIC-Dialekte (12) BLISS (Programmiersprache) (5) Basic Calculator (13) Blitz Basic (6) Batch (14) Boo (7) Bash (15) Brainfuck, Branfuck2D (8) Basic Combined Programming Language (BCPL) Stichworte: Hochsprachenliste Letzte Änderung: 27.07.2016 / TS C:\Users\Goose\Downloads\Softwareentwicklung\Hochsprachenliste.doc Seite 1 von 7 www.sf-ag.com C (1) C (20) Cluster (2) C++ (21) Co-array Fortran (3) C-- (22) COBOL (4) C# (23) Cobra (5) C/AL (24) Coffee Script (6) Caml, siehe Objective CAML (25) COMAL (7) Ceylon (26) Cω (8) C for graphics (27) COMIT (9) Chef (28) Common Lisp (10) CHILL (29) Component Pascal (11) Chuck (Programmiersprache) (30) Comskee (12) CL (31) CONZEPT 16 (13) Clarion (32) CPL (14) Clean (33) CURL (15) Clipper (34) Curry (16) CLIPS (35)
    [Show full text]
  • Microsoft Word 1 Microsoft Word
    Microsoft Word 1 Microsoft Word Microsoft Office Word 2007 in Windows Vista Developer(s) Microsoft Stable release 12.0.6425.1000 (2007 SP2) / April 28, 2009 Operating system Microsoft Windows Type Word processor License Proprietary EULA [1] Website Microsoft Word Windows Microsoft Word 2008 in Mac OS X 10.5. Developer(s) Microsoft Stable release 12.2.1 Build 090605 (2008) / August 6, 2009 Operating system Mac OS X Type Word processor License Proprietary EULA [2] Website Microsoft Word Mac Microsoft Word is Microsoft's word processing software. It was first released in 1983 under the name Multi-Tool Word for Xenix systems.[3] [4] [5] Versions were later written for several other platforms including IBM PCs running DOS (1983), the Apple Macintosh (1984), SCO UNIX, OS/2 and Microsoft Windows (1989). It is a component of the Microsoft Office system; however, it is also sold as a standalone product and included in Microsoft Microsoft Word 2 Works Suite. Beginning with the 2003 version, the branding was revised to emphasize Word's identity as a component within the Office suite; Microsoft began calling it Microsoft Office Word instead of merely Microsoft Word. The latest releases are Word 2007 for Windows and Word 2008 for Mac OS X, while Word 2007 can also be run emulated on Linux[6] . There are commercially available add-ins that expand the functionality of Microsoft Word. History Word 1981 to 1989 Concepts and ideas of Word were brought from Bravo, the original GUI writing word processor developed at Xerox PARC.[7] [8] On February 1, 1983, development on what was originally named Multi-Tool Word began.
    [Show full text]
  • C:\Andrzej\PDF\ABC Nagrywania P³yt CD\1 Strona.Cdr
    IDZ DO PRZYK£ADOWY ROZDZIA£ SPIS TREFCI Wielka encyklopedia komputerów KATALOG KSI¥¯EK Autor: Alan Freedman KATALOG ONLINE T³umaczenie: Micha³ Dadan, Pawe³ Gonera, Pawe³ Koronkiewicz, Rados³aw Meryk, Piotr Pilch ZAMÓW DRUKOWANY KATALOG ISBN: 83-7361-136-3 Tytu³ orygina³u: ComputerDesktop Encyclopedia Format: B5, stron: 1118 TWÓJ KOSZYK DODAJ DO KOSZYKA Wspó³czesna informatyka to nie tylko komputery i oprogramowanie. To setki technologii, narzêdzi i urz¹dzeñ umo¿liwiaj¹cych wykorzystywanie komputerów CENNIK I INFORMACJE w ró¿nych dziedzinach ¿ycia, jak: poligrafia, projektowanie, tworzenie aplikacji, sieci komputerowe, gry, kinowe efekty specjalne i wiele innych. Rozwój technologii ZAMÓW INFORMACJE komputerowych, trwaj¹cy stosunkowo krótko, wniós³ do naszego ¿ycia wiele nowych O NOWOFCIACH mo¿liwoYci. „Wielka encyklopedia komputerów” to kompletne kompendium wiedzy na temat ZAMÓW CENNIK wspó³czesnej informatyki. Jest lektur¹ obowi¹zkow¹ dla ka¿dego, kto chce rozumieæ dynamiczny rozwój elektroniki i technologii informatycznych. Opisuje wszystkie zagadnienia zwi¹zane ze wspó³czesn¹ informatyk¹; przedstawia zarówno jej historiê, CZYTELNIA jak i trendy rozwoju. Zawiera informacje o firmach, których produkty zrewolucjonizowa³y FRAGMENTY KSI¥¯EK ONLINE wspó³czesny Ywiat, oraz opisy technologii, sprzêtu i oprogramowania. Ka¿dy, niezale¿nie od stopnia zaawansowania swojej wiedzy, znajdzie w niej wyczerpuj¹ce wyjaYnienia interesuj¹cych go terminów z ró¿nych bran¿ dzisiejszej informatyki. • Komunikacja pomiêdzy systemami informatycznymi i sieci komputerowe • Grafika komputerowa i technologie multimedialne • Internet, WWW, poczta elektroniczna, grupy dyskusyjne • Komputery osobiste — PC i Macintosh • Komputery typu mainframe i stacje robocze • Tworzenie oprogramowania i systemów komputerowych • Poligrafia i reklama • Komputerowe wspomaganie projektowania • Wirusy komputerowe Wydawnictwo Helion JeYli szukasz ]ród³a informacji o technologiach informatycznych, chcesz poznaæ ul.
    [Show full text]
  • User Guide Disclaimer
    HostAccess User Guide Disclaimer Every effort has been made to ensure that the information contained within this publication is accurate and up-to-date. However, Rogue Wave Software, Inc. does not accept liability for any errors or omissions. Rogue Wave Software, Inc. continuously develops its products and services, and therefore reserves the right to alter the information within this publication without notice. Any changes will be included in subsequent editions of this publication. As the computing industry lacks consistent standards, Rogue Wave Software, Inc. cannot guarantee that its products will be compatible with any combination of systems you choose to use them with. While we may be able to help, you must determine for yourself the compatibility in any particular instance of Rogue Wave Software, Inc. products and your hardware/software environment. Rogue Wave Software, Inc. acknowledges that certain proprietary programs, products or services may be mentioned within this publication. These programs, products or services are distributed under Trademarks or Registered Trademarks of their vendors and/or distributors in the relevant country. Your right to copy this publication, in either hard-copy (paper) or soft-copy (electronic) format, is limited by copyright law. You must obtain prior authorisation from Rogue Wave Software, Inc. before copying, adapting or making compilations of this publication. HostAccess is a trademark of Quovadx Ltd in the United Kingdom and is a registered trademark in the USA. Microsoft is a registered trademark and Windows is a trademark of the Microsoft Corporation. Other brands and their products are trademarks or registered trademarks of their respected holders and should be noted as such.
    [Show full text]
  • Microsoft Word
    Microsoft Word From Wikipedia, the free encyclopedia Microsoft Office Word Microsoft Office Word 2010 on Windows 7. Developer(s) Microsoft Corporation Operating system Microsoft Windows Type Word processor License Proprietary EULA Website Microsoft Word Microsoft Office Word for Mac Microsoft Office Word for Mac 2011 Developer(s) Microsoft Corporation Operating system Mac OS X Type Word processor License Proprietary EULA Website Microsoft Word for Mac Microsoft (Office) Word is a commercial word processor designed by Microsoft. It was first released in 1983 under the name Multi-Tool Word for Xenix systems.[1][2][3] Subsequent versions were later written for several other platforms including IBM PCs running DOS (1983), the Apple Macintosh (1984), the AT&T Unix PC (1985), Atari ST (1986), SCO UNIX, OS/2, and Microsoft Windows (1989). It is a component of the Microsoft Office software system; it is also sold as a standalone product and included in Microsoft Works Suite. The current versions are Microsoft Office Word 2010 for Windows and Microsoft Office Word 2011 for Mac. Contents [hide] 1 History o 1.1 Origins and growth: 1981 to 1995 o 1.2 Microsoft Word for Windows since 1995 o 1.3 Microsoft Word for Mac since 1995 2 File formats o 2.1 File extension o 2.2 Binary formats (Word 97–2003) o 2.3 XML Document (Word 2003) o 2.4 Attempts at cross-version compatibility o 2.5 Third party formats 3 Features and flaws o 3.1 Normal.dot o 3.2 WordArt o 3.3 Macros o 3.4 Layout issues o 3.5 Bullets and numbering o 3.6 Creating tables o 3.7 AutoSummarize o 3.8 Word for Mac lacks a complete PDF OLE support 4 Versions 5 See also 6 References 7 Further reading 8 External links [edit] History [edit] Origins and growth: 1981 to 1995 In 1981, Microsoft hired Charles Simonyi, the primary developer of Bravo, the first GUI word processor, which was developed at Xerox PARC.[4] Simonyi started work on a word processor called Multi-Tool Word and soon hired Richard Brodie, a former Xerox intern, who became the primary software engineer.[4][5][6] Microsoft Word 5.0 for DOS.
    [Show full text]
  • Download Microsoft Powerpoint Viewer for Windows 8
    Download microsoft powerpoint viewer for windows 8 Microsoft PowerPoint Viewer lets you view full-featured presentations created in PowerPoint 97 and later versions. Download · Close window. Fast downloads of the latest free software!*** PowerPoint Viewer lets you view full-featured presentations created in PowerPoint and The following Microsoft PowerPoint features are not supported by this viewer. PowerPoint Viewer , free and safe download. If you have an older machine with an older version of Microsoft Office, or if you're using OS. Windows XP. From Microsoft: PowerPoint Viewer lets you view full- featured presentations created in PowerPoint 97 and later versions with full fidelity. Windows XP, Windows Vista, Windows , Windows 7, Windows 8, English Viewing: PowerPoint Viewer enables to read any Microsoft. PowerPoint Viewer, a free download from , enables viewing of PowerPoint Mobile If you are using Windows 10, PowerPoint Mobile is installed. Microsoft Office is definitely the most popular Office suite for Windows computers – however, not every user can afford to purchase this software. Doesn't need of Microsoft Software, PowerPoint Viewer can view high quality PowerPoint files from PPT, Step 1: Download and install PowerPoint Viewer. PowerPoint Viewer, free download. PowerPoint presentation software may vary, but will generally run fine under Microsoft Windows 10, 8. Microsoft PowerPoint Viewer might not seem a complex utility, but it it comes to viewing a wide range of PowerPoint formats, including. Met deze viewer kunt u ook Microsoft PowerPoint-presentaties Download In Windows 8/ vindt u het programma via het Startscherm. PowerPoint Viewer kostenlos in deutscher Version downloaden! Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP .
    [Show full text]
  • Word Viewer Android Free Download
    Word viewer android free download Continue Viewer documents - Word, Excel, Docs, Slide s Sheet is the smallest size (less than 30MB) and all-in-one full free office package on Android mobile and tablet devices, integrates all the functions of the office word processor: Word, PDF, Presentation, Table, Memo and Scanner in one app, and is fully compatible with Word, Excel, PowerPoint, Documents and PDF format. All Office file formats: doc, docx, wpt,dotm, docm, dot, dotx/xls, xlsx, xlt, xltx, csv, xml, et, ett/PDF/ppt, pot, dps, dpt, pptx, potx, ppsx/txt/magazine, lrc, c, cpp, h, asm, s, java, asp, bat, bas, prg, cmd, epub, please send me an email. Not so smart people can just give a bad rating and/or use expletives in the comments and/or complain about missing software features never promised to have... Office Documents Viewer (Free) is a view of openOffice and Microsoft Office files that allows you to open any text document without any compatibility issues or damaged formats. With Office Documents Viewer (free), you can open documents stored in the internal memory of SD cards, in Dropbox folders, or even downloaded files or documents sent as email attachments. The interface and features are very simple, making it easy to use. Office Documents Viewer (Free) has the ability to zoom in to increase less visible areas, and also allows you to make copies to print, send or listen with a built-in document reader. With Office Documents Viewer (free) you can open almost all open formats open OpenOffice, LibreOffice, Microsoft Office 2007 and Microsoft Office 97, as well as other formats such as RTF, HTML, TXT, CSV, PDF and TSV.
    [Show full text]
  • Использование Word, Excel И Excel Services С Sharepoint 2007
    ГЛАВА 10 Использование Word, Excel и Excel Services с SharePoint 2007 В ЭТОЙ ГЛАВЕ… • Обзор новых типов файлов в Office 2007 • Использование Word 2007 и 2003 с SharePoint 2007 • Использование Excel с SharePoint 2007 • Использование Excel Services в SharePoint 2007 • Полезные советы Использование технологий SharePoint 2007 370 Часть II Одной из сильных сторон SharePoint является его тесная интеграция с семейством продуктов Office. Конкурирующим продуктам вроде Stellent очень трудно соревновать- ся с SharePoint в области обеспечения совместной работы, т.к. большинство корпо- ративных пользователей “живут” в Word, Excel и Outlook. Конкурирующие продукты могут добавлять точки входа в продукты Office и пытаться эмулировать возможности наподобие электронных таблиц и почты, но тесная интеграция SharePoint дает ему существенное преимущество. Эта интеграция продолжается и в SharePoint 2007, став еще более сложной и все- объемлющей. Неудивительно, что наиболее полная интеграция наблюдается с продук- тами Office 2007. Но большинство клиентов, с которыми встречались авторы, работа- ют в смеси различных версий Office. У некоторых установлены еще продукты Office 2000 и 2003, а некоторые только начинали (на момент написания этих строк) реали- зовывать продукты Office 2007. В данной главе представлен обзор возможностей, имеющихся в продуктах Office 2003 и Office 2007. Мы решили не рассматривать продукты 2000, т.к. их жизненный цикл практически завершен (после выпуска двух полных версий). В главе 11 описано использование дополнительных продуктов Office 2007 с SharePoint 2007. Поскольку не всегда легко определить, какие члены семейства Office нужны для ра- боты, в главе 4 была приведена дополнительная информация о различных доступных продуктах Office и высокоуровневых точках интеграции. ÍÀ ÇÀÌÅÒÊÓ Если не указано другое, в этом тексте предполагается, что инсталлирована версия Office 2003 Professional и Office 2007 Enterprise.
    [Show full text]
  • Virus Bulletin, November 1996
    ISSN 0956-9979 NOVEMBER 1996 THE INTERNATIONAL PUBLICATION ON COMPUTER VIRUS PREVENTION, RECOGNITION AND REMOVAL Editor: Ian Whalley CONTENTS Assistant Editor: Megan Skinner EDITORIAL Technical Editor: Jakub Kaminski When the going gets tough, the tough play dirty 2 Consulting Editors: VIRUS PREVALENCE TABLE 3 Richard Ford, Command Software, USA Edward Wilding, Network Security, UK NEWS 1. Sophos Wins 3i Competition 3 2. MicroWazzuSoft…3 3. Takeover for Cheyenne 3 IN THIS ISSUE: IBM PC VIRUSES (UPDATE) 4 • With a macro here, a macro there. The Word macro CONFERENCE REPORT virus phenomenon began with Concept, and is now moving VB ’96: Brighton Rock 6 apace. This edition of VB contains two macro virus analy- ses: NPad, which is spreading rapidly in the wild, and VIRUS ANALYSES Outlaw, which features polymorphism. See p.8 and p.12. 1. NPad: Escape from Indonesia 8 2. Batch Sketches 9 • Let the Word go forth. Word and Excel’s internal file 3. Unsnared and (not so) Dangerous 10 formats have been, until recently, something in which few 4. Outlaw: The Changing Face of Macro Viruses 12 were interested – macro viruses, however, have changed all this. Andrew Krukow discusses the risks; see p.14. FEATURE • A new Trend? Trend Micro Devices PC-cillin has been ‘In the Beginning was the Word…’ 14 completely revamped in recent years: our reviewer takes a PRODUCT REVIEWS look at the new DOS and Windows version on p.18. 1. PC-cillin 95 18 2. ViruSafe LAN 21 END NOTES & NEWS 24 VIRUS BULLETIN ©1996 Virus Bulletin Ltd, The Pentagon, Abingdon, Oxfordshire, OX14 3YP, England.
    [Show full text]
  • Download Microsoft Word Full Free Pc How to Create, Edit, and View Microsoft Word Documents for Free
    download microsoft word full free pc How to Create, Edit, and View Microsoft Word Documents for Free. There was a time when you had to have Microsoft Office installed to create, edit, or even view a Microsoft Word document. Thankfully, that’s no longer the case. There are a number of free alternatives for working with those Word documents people occasionally send you. Word Online. Word Online is Microsoft’s own cloud-based solution for working with Word files. It’s part of the Microsoft Office Online suite, and you can access it without a subscription. You just have to sign in with a free Microsoft account. The interface of the Word Online is similar to the desktop version of Microsoft Word, so if you’re familiar with Word, you’ll feel right at home. Documents you create with Word Online are saved automatically to your OneDrive folders. Word Online also integrates with the desktop version of Microsoft Word, and you can seamlessly switch to the desktop app with the click of a button. All the changes you make to one version are automatically synced to the other. However, you cannot work in the web-app and the desktop app simultaneously. Word Online also features real-time collaboration that lets multiple people work on the same document at the same time. This feature works with Word Online, the Windows and Mac desktop apps, and the mobile apps. The iOS and Android app are also free and allow you to view and edit documents on the go. Word Online is probably your best bet for working with Word documents (other than actually using the desktop app), because it does a good job of maintaining the original formatting of the Word documents.
    [Show full text]
  • SUGI 25: Using Sasr Software and Visual Basic for Applications To
    Applications Development Paper 21-25 Using SAS® Software and Visual Basic for Applications to Automate Tasks in Microsoft Word: An Alternative to Dynamic Data Exchange Mark Stetz, Amgen, Inc., Thousand Oaks, CA ABSTRACT DDE AND THE HARRIS DESIGN Using Dynamic Data Exchange (DDE) to drive Microsoft While DDE implementation is simple, the mixture of SAS Office applications such as Word and Excel has long and WordBasic syntax can result in confusing, difficult to been a technique utilized by SAS programmers. While maintain code. The following shows a simple DATA step alternatives exist (e.g., generating RTF code, OLE for populating a Word document using DDE and Automation), the use of DDE in conjunction with the native WordBasic (assuming Word is currently running): scripting languages of these applications has been appealing since implementation is simple and the macro filename cmds dde 'winword|system' ; recording capabilities of Office applications make script generation nearly automatic. Harris (SUGI 24 data _null_ ; Proceedings, 1999) described a particularly elegant file cmds ; design for using the SAS System and DDE to populate Microsoft Word documents. put '[Insert "Hello World"]' ; put '[FileSaveAs ' Now that the more sophisticated Visual Basic for '.Name = "c:\My Documents\Hello", ' Applications (VBA) is the common development '.Format = 0, ' environment among all Office applications, however, DDE '.AddToMru=0]' ; only works with Office application legacy macro put '[FileClose]' ; languages. Employing Harris’ design, this paper run ; describes a technique to simulate the ease of use of the DDE methodology while taking full advantage of VBA to Harris suggested a design to simplify the coding of such automate Microsoft Word.
    [Show full text]
  • An Introduction to S and the Hmisc and Design Libraries
    An Introduction to S and The Hmisc and Design Libraries Carlos Alzola, MS Frank Harrell, PhD Statistical Consultant Professor of Biostatistics 401 Glyndon Street SE Department of Biostatistics Vienna, Va 22180 Vanderbilt University School of Medicine [email protected] S-2323 Medical Center North Nashville, Tn 37232 [email protected] http://biostat.mc.vanderbilt.edu/RS September 24, 2006 ii Updates to this document may be obtained from biostat.mc.vanderbilt.edu/RS/sintro.pdf. Contents 1 Introduction 1 1.1 S, S-Plus, R, and Source References ........................... 1 1.1.1 R ........................................... 4 1.2 Starting S .......................................... 4 1.2.1 UNIX/Linux .................................... 4 1.2.2 Windows ...................................... 5 1.3 Commands vs. GUIs .................................... 7 1.4 Basic S Commands ..................................... 7 1.5 Methods for Entering and Saving S Commands ..................... 9 1.5.1 Specifying System File Names in S ........................ 11 1.6 Differences Between S and SAS .............................. 11 1.7 A Comparison of UNIX/Linux and Windows for Running S .............. 18 1.8 System Requirements ................................... 19 1.9 Some Useful System Tools ................................. 19 2 Objects, Getting Help, Functions, Attributes, and Libraries 25 2.1 Objects ........................................... 25 2.2 Getting Help ........................................ 25 2.3 Functions .........................................
    [Show full text]