Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by brothertruffle880
at 2024-07-29 12:34:59
Point:500 Replies:5 POST_ID:828634USER_ID:11832
Topic:
Microsoft Excel Spreadsheet Software;;
What is the difference between the Activate event and the activate method? Perhaps my confusion lies with the bigger picture. How do I know I'm dealing with an event or a method. What's the difference between a event and a method?
Very confusing.
Very confusing.
Expert: MartinLiss replied at 2024-08-03 11:25:58
Did any of the above replies help you?
Assisted Solution
Expert: byundt replied at 2024-07-29 13:39:55
166 points EXCELLENT
I like the discussion in duncanb7's MSDN link.
Aother way of distinguishing objects, methods, properties and events is by analogy to grammar.
Objects are nouns. You can act on them with methods or describe them with properties.
Properties are adjectives or adverbs. They describe an object and have values that may be read or set. Properties are always associated with a specific object. Even if several objects have a certain property, you have to read or set that property one object at a time.
Methods are verbs. Methods are also associated with a specific object, on a non-exclusive basis just like properties.
Events are the result of an action by the user or by a macro. The event occurs when the action finishes, such as selecting a cell or pushing down a mouse button. Some events can be trapped--this means they trigger an event sub to run (if one has been coded). Even though many different events are possible, not every possibility has an event sub. So Excel VBA has event subs that run when the user selects a cell or changes its value--but not after changing its format.
Aother way of distinguishing objects, methods, properties and events is by analogy to grammar.
Objects are nouns. You can act on them with methods or describe them with properties.
Properties are adjectives or adverbs. They describe an object and have values that may be read or set. Properties are always associated with a specific object. Even if several objects have a certain property, you have to read or set that property one object at a time.
Methods are verbs. Methods are also associated with a specific object, on a non-exclusive basis just like properties.
Events are the result of an action by the user or by a macro. The event occurs when the action finishes, such as selecting a cell or pushing down a mouse button. Some events can be trapped--this means they trigger an event sub to run (if one has been coded). Even though many different events are possible, not every possibility has an event sub. So Excel VBA has event subs that run when the user selects a cell or changes its value--but not after changing its format.
Assisted Solution
Expert: duncanb7 replied at 2024-07-29 12:55:19
167 points EXCELLENT
Take a closer look from MS for the concept
http://msdn.microsoft.com/en-us/library/ms172576%28VS.80%29.aspx
http://msdn.microsoft.com/en-us/library/ms172576%28VS.80%29.aspx
Accepted Solution
Expert: MartinLiss replied at 2024-07-29 12:41:06
167 points EXCELLENT
Another way of looking at is that an Event is a handle that VBA supplies when something happens so that you can if you like add code to be executed when the event happens.
Expert: MartinLiss replied at 2024-07-29 12:39:12
The event happens after something is activated.