LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default array data type issues -

On Tuesday, December 9, 2014 2:42:41 PM UTC-7, GS wrote:
typo...

TempVal = Application.Index(TempArr, i + 1)
This line requires both dims because TempArr is same as
UBound(MyArr) rows-wise, with 1 col for 2nd dim! This throws the
error for the next


line, and so try...

TempVal = TempArr(i, 1)

..since your counter now starts at 1 (LBound(TempArr))!


--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


the TempVal = Application.Index(TempArr, i + 1) line was my problem.
I don't know why i was trying to access the element in wanted via
index in an array - i am trying to convert to arrays to i can use
array syntax to make life easier/faster. DUH! haha. thanks for the
help.


Glad to help where I can!

I was focussed on your statement from the other post...

"so i'm trying to teach myself how to do data manipulations in arrays
instead of in the excel cells directly"

...where I also posted a download link to some samples I'm working on.
(They are still considered 'work-in-progress' as yet!)

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
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
Data type issues adding data from vbscript Chris Excel Programming 7 October 30th 08 02:06 PM
Counting elements of array and range type data TomLegado Excel Programming 13 September 16th 07 10:59 PM
Declaring Data Type of Array [email protected] Excel Programming 8 February 7th 06 05:53 AM
Help: Compile error: type mismatch: array or user defined type expected lvcha.gouqizi Excel Programming 1 October 31st 05 08:20 PM
Array loses data type when placed into range Mbtch@. Excel Programming 2 June 7th 05 09:23 PM


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