Word Document Properties



Download 8,82 Mb.
Pdf ko'rish
bet36/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   32   33   34   35   36   37   38   39   ...   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Figure 1-8:
Some
properties
display a
dialog box
to select the
correct
value.
24
Part I: An Overview of VBA 
05_046500 ch01.qxp 12/5/06 5:33 PM Page 24


Such help screens tell you about the property and how it’s used as well as
provide you with links for additional information. The additional information
is especially important when you start changing the property values in your
application code. For example, click the Example link, and the help system
shows how to write code that uses that property. (You don’t have to click the
Example link when working with newer versions of Office — the example
appears at the bottom of the help screen.)
Click the See Also link on help screens for more information about a topic,
such as info about objects, properties, methods, and events associated with
the topic. In some cases, you also get recommended ways to work with an
object, property, method, or event. (You don’t have to click the See Also link
when working with newer versions of Office — the additional information
links appear in the middle or bottom of the help screen.)
Using the Code window
The 
Code window
is where you write your application code. It works like any
other editor that you’ve used, except that you type in a special language:
VBA. Figure 1-10 shows a typical example of a Code window with some code
loaded. Notice that the Project Explorer window and the Properties window
are gone — you can display them again by using the View

Project Explorer 
Figure 1-9:
Help
documents
the
properties
that VBA
supports.
25
Chapter 1: Getting to Know VBA
05_046500 ch01.qxp 12/5/06 5:33 PM Page 25


and View

Properties Window commands. As an alternative, press Ctrl+R to
display Project Explorer or F4 to display the Properties window.
Opening an existing Code window
Sometimes you won’t be able to complete an application and need to work on
it later. To open an existing Code window, find the module that you want to
open in Project Explorer. Double-click the module entry, and the IDE displays
the code within it with your code loaded.
The Code window also appears when you perform other tasks. For example,
if you double-click one of the controls on a form, the Code window appears
so that you can add code to the default event handler. VBA calls the 
event
handler
(special code that responds to the event) every time that the speci-
fied event occurs.
Creating a new Code window
When you start a new module within an existing document or template, open
a new Code window by using either the Insert

Module or Insert

Class
Module command. After you save this module or class module, it appears in
Project Explorer (refer to Figure 1-3) with the other modules and class mod-
ules in your project.

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   32   33   34   35   36   37   38   39   ...   207




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish