LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Dim MyArray() as Long, Dim MyArray() as String, etc.

I am using Office 2003 on Windows XP.

I am used to just dimensioning my arrays a variants (since I think at one
time you had to?), but can you not now dim them as other types? Or does VBA
coerce them back to variants anyway? For example:

Dim arrRow() As Long
Dim arrFileName() As String

Is there any performance gain in doing this?
Is there any other advantage in doing this?
Is it considered good programming practice to do this?

Any an all input appreciated.
Thanks in advance.
 
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
Dim MyArray vs. Dim MyArray() Alan Beban[_2_] Excel Programming 12 November 14th 04 06:13 PM
If Range("C1") is in MyArray zSplash Excel Programming 3 April 23rd 04 04:22 PM
Can I reset an array to myarray() Alan Beban[_4_] Excel Programming 1 February 20th 04 06:16 PM
Can I reset an array to myarray() Chip Pearson Excel Programming 0 February 20th 04 05:41 PM
Redim MyArray Peter Pantus Excel Programming 2 September 27th 03 03:37 PM


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