Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Scoping a Subroutine

A subroutine can be Public or Private. Public subroutines can be called by any subroutine in any module. The default for any Sub procedure is Public. A Private subroutine can be called only by other subroutines in the same module. To declare the subroutine Tasks as a private subroutine, use the statement [Pg.270]

VBA provides two built-in dialog boxes for display of messages or for input, MsgBox and InputBox. [Pg.270]

The MsgBox dialog box allows you to display a message, such as Please wait... or Access denied . The box can display one of three message icons, and there are many possibilities in the number and function of buttons that can be displayed. [Pg.270]

MsgBox (prompt text, buttons, title text, helpfile, context) [Pg.270]

The value of buttons determines the type of message icon and the number and type of response buttons it also determines which button is the default button. The possible values are listed in Table 14-6. The values of buttons are built-in constants — for example, the value 64 for buttons can be replaced by the [Pg.270]


See other pages where Scoping a Subroutine is mentioned: [Pg.270]    [Pg.270]   


SEARCH



Subroutine

© 2024 chempedia.info