ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Naming class modules in Excel 2002 (https://www.excelbanter.com/excel-discussion-misc-queries/1768-naming-class-modules-excel-2002-a.html)

bryan

Naming class modules in Excel 2002
 
How do you do this???

In VB Help for Excel 2002 under 'Using Events with the Application
Object', it says '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'.

When I do an Insert/Class Module, it's generated with name Class1. How
do I change this to EventClassModule?

Regards,

Bryan

Ben McBen

Either show the property window (View - Properties
Window) or right click - Properties

Leo Heuser

Bryan

You can do it from the properties window.
The uppermost line with (Name).

If the properties window is not visible, get
it with <F4 or from the menu "View".

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"bryan" skrev i en meddelelse
om...
How do you do this???

In VB Help for Excel 2002 under 'Using Events with the Application
Object', it says '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'.

When I do an Insert/Class Module, it's generated with name Class1. How
do I change this to EventClassModule?

Regards,

Bryan





All times are GMT +1. The time now is 03:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com