|
Помогите пожалуйста с Excel
|
|||
---|---|---|---|
#18+
Друзья, у меня такая проблема. Необходимо, что бы при открытии документа Excel автомотически запускался макрос. При завершении его выполнения, документ должен закрыться. Как это сделать: Help! Спасибо. ... |
|||
:
Нравится:
Не нравится:
|
|||
29.10.2004, 11:37 |
|
Помогите пожалуйста с Excel
|
|||
---|---|---|---|
#18+
Using Events with the Application Object Before you can use events with the Application object, you must create a new class module and declare an object of type Application with events. For example, assume that a new class module is created and called EventClassModule. The new class module contains the following code. Public WithEvents App As ApplicationAfter the new object has been declared with events, it appears in the Object drop-down list box in the class module, and you can write event procedures for the new object. (When you select the new object in the Object box, the valid events for that object are listed in the Procedure drop-down list box.) Before the procedures will run, however, you must connect the declared object in the class module with the Application object. You can do this with the following code from any module. Dim X As New EventClassModule Sub InitializeApp() Set X.App = Application End SubAfter you run the InitializeApp procedure, the App object in the class module points to the Microsoft Excel Application object, and the event procedures in the class module will run when the events occur ... |
|||
:
Нравится:
Не нравится:
|
|||
29.10.2004, 13:49 |
|
Помогите пожалуйста с Excel
|
|||
---|---|---|---|
#18+
Private Sub Workbook_Open() ... Me.Close End Sub ... |
|||
:
Нравится:
Не нравится:
|
|||
29.10.2004, 15:28 |
|
Помогите пожалуйста с Excel
|
|||
---|---|---|---|
#18+
raurPrivate Sub Workbook_Open() ... Me.Close End Sub А куда это прописывается? В сам макрос? ... |
|||
:
Нравится:
Не нравится:
|
|||
01.11.2004, 18:04 |
|
Помогите пожалуйста с Excel
|
|||
---|---|---|---|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
ни майё ... |
|||
:
Нравится:
Не нравится:
|
|||
01.11.2004, 18:44 |
|
|
start [/forum/topic.php?fid=61&fpage=370&tid=2186468]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
40ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
47ms |
get tp. blocked users: |
2ms |
others: | 12ms |
total: | 146ms |
0 / 0 |