Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Class Module vs. Arrays

Hello all,

I have a quick VBA architectural question and any direction you may be
able to provide would be greatly appreciated.

I have created an Excel application which takes 3 real-time inputs (via
DDE), has roughly 60 variables of different types and about 12 outputs,
and about 2000 lines of code.

I now want to change the application so that it will handle multiple
sets of the 3 inputs simultaneously.

How would you suggest changing the architecture? Move everything into
a class and then instantiate an instance of the related object as
needed? Or, create a large array which can handle multiple instances
of each variable and loop through the array sequentially?

Any thoughts would be great!

Thanks,

Trip

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Class Module vs. Arrays

I would go for a class module approach, storing each new instance
of the class in a Collection object.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Trip" wrote in message
oups.com...
Hello all,

I have a quick VBA architectural question and any direction you
may be
able to provide would be greatly appreciated.

I have created an Excel application which takes 3 real-time
inputs (via
DDE), has roughly 60 variables of different types and about 12
outputs,
and about 2000 lines of code.

I now want to change the application so that it will handle
multiple
sets of the 3 inputs simultaneously.

How would you suggest changing the architecture? Move
everything into
a class and then instantiate an instance of the related object
as
needed? Or, create a large array which can handle multiple
instances
of each variable and loop through the array sequentially?

Any thoughts would be great!

Thanks,

Trip



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Class Module vs. Arrays

Thank you Chip!

Can you point me to any good examples of this being done? This would
be a great help since I'm somewhat of a class/ood newbie.

Thanks again!

Trip

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Class Module vs. Arrays


set up a class wrapping a variant collection or better thre
collections
as your input class

create a parent class with a variant collection to add inputs in

--
Dnere

-----------------------------------------------------------------------
Dnereb's Profile: http://www.excelforum.com/member.php...fo&userid=2618
View this thread: http://www.excelforum.com/showthread.php?threadid=46627

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
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
class module? sybmathics Excel Programming 17 February 25th 06 02:29 PM
Class module Mark[_36_] Excel Programming 2 February 17th 04 03:14 PM
Class module David Excel Programming 4 December 31st 03 01:58 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


All times are GMT +1. The time now is 02:13 PM.

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"