Word Document Properties


Part I: An Overview of VBA



Download 8,82 Mb.
Pdf ko'rish
bet27/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   23   24   25   26   27   28   29   30   ...   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Part I: An Overview of VBA 
05_046500 ch01.qxp 12/5/06 5:33 PM Page 12


your work. Use VBA to create a new version of the feature with everything
that you need and nothing that you don’t. For example, I never liked how
Word performs a word count, so I created my own program to perform the
task. Chapter 12 shows you some of my secrets for taming unruly interfaces.
Changing an application interface to your liking is easy. You can create a cus-
tomized menu system or toolbars. You can move some interface elements out
to a form or get rid of them completely. In addition, any interface change that
you want to make is probably doable by using VBA. In addition, you don’t
necessarily have to use just one interface. You can create programs to change
the interface as needed for the task that you’re performing. For example, I
have a program to switch between book, article, and client document-writing
modes. Chapter 7 shows a number of interesting ways to use forms.
Performing calculations
One of the most common uses of special applications is to perform complex
calculations. You can create many types of equations by using any of the
Microsoft Office products. Sometimes, however, you need to change the data
before you can use it or perform the calculation differently depending on the
value of one or more inputs. Whenever a calculation becomes too compli-
cated for a simple equation, use VBA to simplify things by solving the calcula-
tion problem using small steps rather than one big step. Chapters 4 and 14
show a number of ways to work with calculations.
Sometimes the number that you create using a calculation doesn’t mean
much — it’s just a number until someone makes a decision. Some decisions
are easy to make yet repetitive. Chapter 5 shows the methods that your appli-
cation can use to make decisions automatically with VBA. Smart applications
save you more time for playing that game of Solitaire.
Getting stuff from a database
I use Access to store a variety of information — everything from my movie
collection to a list of clients that I work with regularly. You use databases to
store information, although that doesn’t help much if you can’t get it out. Use
VBA to get the information from your database in the form that you need it.
For example, you can display that information on a form so that you can
review it, or use that same data to create a report.
I love databases because they provide the most flexible method for storing
repetitive information, such as a client list or any other kind of list that you
can imagine. Don’t assume that databases are so complicated that you’ll
13

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   23   24   25   26   27   28   29   30   ...   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