Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 5D Array using Name reference


I currently us a 4D array to mirror an Excel database consisting of

* folder,
* workbook (with one worksheet),
* rows and columns


Private Type MasterArray
FolderNumber as Integer 'This is a number representing the
folder name
WorkBookNumber as Integer This is a number representing the
workbook.worksheet
Values as Variant 'Values (r,c) are the row
and column numbers on the worksheet
End Type

Dim mMasterArray ( ) as MasterArray

mMasterArray (FolderNumber,WorkBookNumber). Values (r,c)

I want to now extend this to a 5D array , so I can add one more
dimension to accommodate different worksheets in a workbook.

I have two questions.


1. Do I just add WorksheetNumber as Integer to the above type list ,
resulting in
mMasterArray(FolderNumber,WorkBookNumber,Worksheet Number).Values (x,y)

2. Instead of numbers can I just define FolderName as String, and use a
name instead of a number as the reference.


Thank you very much for any ideas

K

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 5D Array using Name reference

I currently us a 4D array to mirror an Excel database consisting of

Sorry but all I see is a one-dimensional array. Just because it's an array
of a custom type having multiple elements doesn't make it multi-dimensional.
But anyway, sure, you can change the type of any element and add all the
elements you want. In fact, feel free to experiment<g.

--
Jim Rech
Excel MVP


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 5D Array using Name reference

Looks like you are using an array of user defined structures. A 5D
array would be more like
dim myarr(#,#,#,#,#) as variant

Keith
www.kjtfs.com


---
Message posted from http://www.ExcelForum.com/

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
Cell reference within array [email protected] Excel Worksheet Functions 10 May 6th 09 02:52 PM
Getting all positions of a value in an array or reference Yossi Excel Discussion (Misc queries) 7 January 2nd 09 09:04 PM
Remote 3D reference array Edward Excel Discussion (Misc queries) 0 January 2nd 07 04:14 PM
Use one array as a reference for another cqmman Excel Discussion (Misc queries) 0 December 9th 06 08:44 PM
Array Reference anar_baku Excel Worksheet Functions 3 November 29th 05 07:18 PM


All times are GMT +1. The time now is 02:25 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"