Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subscript out of range
#2
Solved: 11 Years, 1 Month, 4 Weeks ago
Split function will return only zero based one dimensional array. But in 3rd line you are trying to assign the value to a two dimensional array. You can try the following:

Code:
sToDate = Split("6/11/10 4:35 AM", " ")
MsgBox sToDate(0)
sToDate(0) = Split(sToDate(0), "/")
MsgBox sToDate(0)(2)
sToDate(0)(2) = "20" & sToDate(0)(2)
MsgBox sToDate(0)(2)
Reply


Messages In This Thread
Subscript out of range - by vijayendra.shukla - 06-11-2010, 04:55 PM
RE: Subscript out of range - by guin.anirban - 06-11-2010, 06:51 PM
RE: Subscript out of range - by vijayendra.shukla - 06-11-2010, 07:40 PM
RE: Subscript out of range - by jsknight1969 - 06-11-2010, 09:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to count a repeated number in number in particular range gollsrin 1 3,521 04-28-2011, 11:41 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)