![]() |
#4
|
||||
|
||||
![]()
(Further explanation:) Omaha, Paul included an Exit statement, which is correct if you want to stop once you find "the" value with the slash in it. My version assumes there are multiple values you want to save, and keeps looking through the whole array.
As for the starting point of the array, that depends on how you defined the array. What Paul's saying is that if you define an array like this: Code:
Dim splitslash(10) Code:
Dim splitslash(0 to 10) But no matter what you specified when you defined the array, you can always have your program use the LBound function, which mirrors UBound: Code:
For i = LBound(splitslash) To UBound(splitslash) |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
j2b3 | Excel | 3 | 01-30-2013 01:49 AM |
![]() |
tinfanide | Excel Programming | 4 | 12-26-2012 08:56 PM |
Apparently empty (blank) cells aren't empty | daymaker | Excel | 3 | 03-08-2012 03:41 PM |
How to reserve an array in a public function? | tinfanide | Word VBA | 2 | 02-27-2012 06:51 AM |
![]() |
andrei | Excel | 9 | 02-03-2012 03:40 AM |