Thread: Lists
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
quartz[_2_] quartz[_2_] is offline
external usenet poster
 
Posts: 441
Default Lists

I am unfamiliar with Python, perhaps someone else will post who is, but
judging by your example, I think the nearest equivalent may be called an
Array?

Here is a brief example, but you should read about them in help:

Sub testthis()

Dim vData As Variant
Dim lX As Long
vData = Array("Dog", "Monkey", "Horse", "Rat")

For lX = 1 To UBound(vData)
MsgBox vData(lX)
Next lX

End Sub


"mb" wrote:

How do I create a list?

In python, it is: variable = [1,2,3,4]

Thanks,
mb