Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Loading 3 Dimensional Array

You obviously didn't give us all the relevant information; the following
works fine:

Dim TextArray() As String, CurrentLetter As String
ReDim TextArray(0 To 3, 0 To 3, 0 To 2)
CurrentLetter = "Y"
TextArray(0, 0, 0) = CurrentLetter
MsgBox TextArray(0, 0, 0)

Alan Beban

wrote:
Silly question to ask. I want to load a three dimensional array with
text. I am not sure how exactly to do this. I have a variable equal
to a letter:

CurrentLetter = "Y"

When I do this:
TextArray(0, 0, 0)= CurrentLetter

I get an error message saying "Expected Array".

How do I load the "Y" into the element 0,0,0?

TS


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
Lookup within a 2 dimensional array Edu Excel Worksheet Functions 5 March 31st 10 09:52 PM
Three Dimensional Array Question Tornados Excel Discussion (Misc queries) 1 June 20th 05 12:58 AM
add to two dimensional array GUS Excel Programming 1 August 26th 03 12:12 AM
2 Dimensional Array Tom Ogilvy Excel Programming 0 August 18th 03 08:04 PM
2 Dimensional Array steve Excel Programming 0 August 18th 03 07:19 PM


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

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

About Us

"It's about Microsoft Excel"