1.
VBA.
Visual Basic for Applications (VBA) Excel .
:
- , ;
- ;
- .
VBA - .
, , , , .
, .
, :
Worksheets ( 1) 1,
Worksheets (1) .
, , .. , , . , , .
, .
.
.
Application.Quit Application.
Worksheets (1).Chartobjects.Delete 1.
, : , , (, ).
:
.=
.
Worksheets.Visible = False
, :
ActiveCell .
ActiveWindow .
ActiveCell, ActiveWindow. ActiveCell Application. ActiveWindow. ActiveCell .
, .
VBA , .
1. , .
- (. 1)
1. -
1. Microsoft Excel.
2. 1-
3. VBA.
- - Visual Basic. IDE Visual Basic
4. Insert - Module, :
5. (. 2) (. 3):
2.
3.
5. MS Excel .
2. .
VBA . 1.
|
|
- (. 4) (. 5) (. 6):
4. -
)
)
)
5.
6.
6. MS Excel .
3. Y, :
1. MS Excel , 7.
7.
2. VBA. .
3. Main.
.
4. MS Excel (. . 7):
- ActiveX.
- :
o Caption
o Name CommandButton1.
5. VBA Click. :
6. MS Excel
4. f, :
. 8.
8.
1. - .
1. .
2. .
3. .
4. .
5. , .
6. .
7. .
8. , .
9. .
10. .
11. .
12. .
13. .
14. .
2. Y, :
3. f,
1. -.
2. .
3. .
1. ,
2. -.
3. .
4. .
5. .
6. -.
7. , , .
8. .
|
|
9. .
1. ?
2. ?
3. ?
4. VBA ?
5. VBA ?
6.
7. , .
8. Arcsin VBA?
9. , Arcctg VBA.