Thread
:
String array initialisation
View Single Post
#
2
Posted to microsoft.public.excel.programming
Piotr Lipski
external usenet poster
Posts: 36
String array initialisation
Dnia 29 Jun 2006 12:21:48 -0700,
napisał(a):
Dim VarNames
dim r as excel.range, strtmp as string
for each r in range("k22:k32").cells 'btw, that's 11 cells, not 10
strtmp = strtmp & switch(strtmp="", "", true, ";")
next r
VarNames = split(strtmp, ";")
There is probably someting better, but I always use this.
--
PL
Reply With Quote
Piotr Lipski
View Public Profile
Find all posts by Piotr Lipski