Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Should Method Belong to the Class?

Hello all,

I was wondering if there is a general rule as to when a method should
belong to a class as opposed to a general module (or vise-versa)? In
that we're talking about VBA within Excel everything I would develop
would be "in-process".

Any thoughts?

Thanks!

Trip

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Should Method Belong to the Class?

Hi Trip,

Trip wrote:
I was wondering if there is a general rule as to when a method should
belong to a class as opposed to a general module (or vise-versa)? In
that we're talking about VBA within Excel everything I would develop
would be "in-process".


IMO, it's all about personal preference and ease of development/maintenance.
If you're used to OOP and would rather create classes with
methods/properties, then I'd say go for it. But you're right - everything
is "in-process" anyway, so it won't really matter performance-wise. If you
need to trap Application-level events, you'll have to use class modules.
Other than that, just about everything (besides UserForms) can be done with
standard modules.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofill method of Range class failed JJ \(UK\)[_2_] Excel Programming 2 August 14th 05 07:46 PM
Autofill method of range class failed - sometimes Intellihome Excel Programming 9 May 28th 05 01:21 PM
Specify which method is default in custom class Bing Excel Programming 1 December 23rd 04 10:33 PM
Copy Method of Worksheet Class Failed Steph[_3_] Excel Programming 0 April 5th 04 11:12 PM
AutoFit method of Range class failed Wellie[_2_] Excel Programming 1 February 29th 04 02:06 PM


All times are GMT +1. The time now is 03:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"