Word Document Properties



Download 8,82 Mb.
Pdf ko'rish
bet130/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   126   127   128   129   130   131   132   133   ...   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Message box:
Many of my examples in this chapter use message boxes,
which is the standard method that most programs use.
Text file:
You can create a text file with error information. A formatted
text file — one that uses tabs to separate individual entries — can act as
input to a database. See Chapter 10 for details on working with disk files.
Windows Event Log:
You can use a Windows Event Log entry to hold the
error information. The Event Log uses a standard format for error mes-
sages. It’s the place where a network administrator looks for errors.
E--mail:
You can create an e-mail message with error information about
your program. See Chapter 16 for details on working with Outlook from a
VBA program.
146
Part II: Learning the Ropes 
11_046500 ch06.qxp 12/5/06 5:35 PM Page 146


Saving and Restoring Code
Some VBA code is generic, which means that you can use it in more than one
place. Keeping this code in a separate module that you move from applica-
tion to application is always a good idea. When you use generic modules, you
write the code once and then you always have it when you need it. This sec-
tion describes how to export modules from one application and import them
into another.
Exporting a module from a program
When you work with VBA, you might create some modules that you want to
use in other places. This means exporting your module to a BAS (BASIC) file.
(Forms rely on the FRM file, and class modules rely on the CLS file.) The fol-
lowing steps tell you how to perform this task.
1. Highlight the module, form, or class module that you want to export
from a program in the Project Explorer window.
2. Right-click the entry and then choose Export File from the context

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   126   127   128   129   130   131   132   133   ...   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