really different objects. However, because Microsoft has extracted these things separately, allowing us to write code to associate with these objects, they have different meanings and can be seen as Microsoft's custom and embedded modules. Since we can write and store code inside them, you should not look at them like Range,cell, but rather as a module to see them. (This shift in thinking is important, and they are here to be viewed as modules rather than as objects we use).In fact, as the
objects. Here, we have selected the knowledge of common office VBA development objects to facilitate quick query.
(1) Development objects of Word 20021. Application Object
This object represents the word application, through which all other objects in word can be accessed.
(1) activedocument attribute: return the docu
recorded and re-playback, more well-known such as: Key Wizard, AutoHotkey and so on.Iii. What does "macro" look like?As described in the 2nd section, many software are macros, and different software macros are not the same. The following is a script for AutoHotkey:#z:: Run www.autohotkey.com::/note::Ifwinexist Untitled-NotepadWinactivateElseRun NotepadReturnMacros in office are called VBA (Visual Basic for application). The
Overview: It mainly describes the usage and disadvantages of VBA, and then explains how to set up the development environment of VBA and how to improve programming efficiency by using VBE.
I. A Brief History of VBA
A) macro introduction:
The macro should be named macro. It is a set of commands that automatically execute certain operations. It contains two process
all in outlook); without OneNote, note how to remember, now all the notes, diaries, and blogs are completed in OneNote first, including a lotArticleSomeone recommends [Evernote], but does not support Chinese. On the contrary, Word and Excel are the least important.
If there are so many topics, I want to say that excel + VBA is good, and I want to have better tools. From the use of DOS to the present, exc
One of the important reasons for the great success of office is VBA, which can be used to accomplish many things. VBA based on Excel and Word is small.ProgramCountless.
Many VBA programmers are amateur programmers who solve problems they need to solve in their work. Therefore, most
frequently reviewing VBA help in the process of learning VBA. In view of other people's Code, the unfamiliar word, as long as the cursor moved to it, and then press the F1 key, you can quickly detect the relevant help. In the Help Answer Wizard, we can also type in the relevant keywords to find what we need. When you can skillfully apply good help, your
What is VBA? VBA is a shorthand for the Visual Basic for application, which is based on a VB language and has been modified and run in Microsoft Office applications such as Excel,word, which cannot generate executable programs like VB.
What is an Excel application? Using Excel and VBA as the platform, the electronic d
Using VBA (Visual Basic for application) macros in office Office software
Tang Tiexin
Talk about macros, many people think of macro virus, in fact, if there is genuine anti-virus software, open real-time protection, set a good macro security, you can use macros to complete many office automation functions.
Open the Word software, from the file main Menu "Tools"-> "Macros"-> "Security", set security to, s
I typically work with the Office family's data in OLE mode.First, the definitionWordapp:variant;Currdoc:variant;Selection:variant;Second, initializeWordapp.visible: = true;Currdoc: = WordApp.documents.Open (Afullfilename, Revert: = True, Visible: = True);Selection: = currdoc.activewindow.selection;//advantage is not afraid to open and close other Word documents and errorIII. Release ProcessingIf not Varisempty (Currdoc) ThenBeginTryCurrdoc.save;Currdo
in the configuration file. If the VBS file (VB Script), because the implementation of the VBS file is Cscript.exe or Wscript.exe, by default, our system is using Wscript.exe to execute, at this time you can match The file is placed under the system32 of the system directory, named Wscript.exe.config.
If it's a VBA macro, it depends on Word or Excel, or something else. Because of different types, their pro
Calling Visual Basic for Applications code from Visual Basic. net
Original article address
Http://msdn2.microsoft.com/en-us/library/aa159913 (office.11). aspx # odc_vbnetcallsvba_createtheaccesscode
Microsoft Office 2003 Technical articlescalling Visual Basic for Applications code from Visual Basic. net
Frank riceMicrosoft Corporation
May 1, 2004
Applies:Microsoft Visual Basic. netMicrosoft Office Access 2003Microsoft Office Excel 2003Microsoft Office
What is VBA?What does Microsoft mean by authorizing Kingsoft to use its "housekeeping skills" (VBA) (especially for commercial use? First, we need to figure out what is VBA. You cannot blame people for talking.I remember that during the period from 1989 to May, I went to Peking University to contact director Lin jianxiang of Peking University's computer teaching
Data | database
Integrated examination system of computer culture base based on database, OLE and VBA technology
Chen Cli
Content Summary: This paper introduces the integration examination system developed by using database technology, Object linking technology (OLE) and VBA programming in VB, so as to realize the paperless examination and automatic marking of theoretical knowledge and operation skill in
the customer information and sales information in the sales analysis respectively to analyze the data or information of the two parts.
After using this method, you can determine whether or not the relevant naming area is selected. Some functions related to the area can be used:
Application.Intersect Application.Union
2. You can set up indexes for each column in the named area using the enumeration type, so that the UI can be modified in a unified manner.
3. flexible use of relative referenc
In the morning, the press called to inform you that the book has been officially published. After reading the second bookstore, you can order it now, but the status is out of stock. If you need it, you can order it. It is estimated that each bookstore can see it in a month.
Order: http://www.dearbook.com.cn/book/110873Http://www.dangdang.com/product/9201/9201169.shtml
Chapter 2 Introduction to excel and VBA 11.1 about Excel and vba11.2 excel a
The VBA basics are coming to an end in everyone's attention. There are many classic VBA operations that we just briefly introduce, to use VBA skillfully, You need to digest and absorb it slowly, and then summarize and improve it in practice. Finally, we collected common VBA code to attract a large number of readers and
Technorati label: VBA, naming convention, constant, variable
Generally, naming Rules use a lowercase prefix or suffix to specify the type and scope of a variable. The variable itself should use meaningful names to describe what it is or what it is to be done.A multi-character variable name is connected by several words. The first letter of each word is capitalized and no underline is used.. If you have use
Although I have said earlier, it is not a good idea to manipulate a workbook in VBA, but sometimes it is unavoidable to do so. In the vast majority of cases, what we want to do is get a workbook object and use it to get the sheet object, and then process the data in the worksheet. The latter part (the action sheet) has been discussed earlier, so this chapter is about how to open, close, and describe two commonly used workbook objects in
Iv. warm greeting card wizard for VBA Integrated Development instances(1) Routine DecompositionThis example is a simple greeting card wizard that can run directly and help generate simple greeting cards. The main interface of the program is similar to the standard Wizard of word. You can directly jump to the corresponding step by clicking the "previous" and "Next" buttons or directly clicking the switch but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.