Word Document Properties



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

Figure 1-10:
Use the
Code
window to
modify your
program.
26
Part I: An Overview of VBA 
05_046500 ch01.qxp 12/5/06 5:33 PM Page 26


Typing text in the Code window
When you type code, VBA checks what you type. If you make a major error,
such as typing a word that VBA doesn’t understand, you see an error mes-
sage explaining what you did wrong (see Figure 1-11). If you don’t understand
the error, click the Help button for additional information.
While you type the code for your application, VBA also formats it. For exam-
ple, if you type a keyword in lowercase letters, VBA changes it so it appears
as shown in the help file. 
Hint:
Keywords also appear in a different color so
that you can easily identify them. This book contains examples of the
common VBA keywords.
Finding more Code window features
The Code window has a context menu, just like other objects in VBA. When
you right-click the Code window, you see a list of optional actions that you
can perform. For example, you can obtain a list of properties and methods
that apply to the object that you’re currently using in the window. Chapter 3
shows how to use many of the special Code window features.
Getting help with code
Because it’s hard to remember precisely how to use every function and
method that VBA supports, use the VBA help feature. For any keyword that
you type in the Code window, highlight the keyword and press F1, and VBA
will look for help on the keyword that you selected.
Make sure that you select the entire keyword, or VBA might not find the infor-
mation that you need. Double-click the keyword to ensure that you highlight
the entire word.
Using the Immediate window
Although you can use the Immediate window for debugging applications, this
window can actually help you learn about VBA and save you from having to

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   33   34   35   36   37   38   39   40   ...   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