View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
quartz[_2_] quartz[_2_] is offline
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.