![]() |
#1
|
|||
|
|||
![]()
I get that this is a common error. I write these things all the time. I am stumped on this one though.
sBaby is defined as a String. The variable defines just fine. I just can do a Substring on it for some reason? It is erroring on the variable in the second line. Yes, i feel dumb asking... but I have spent too much time trying to figure it out!!! sBaby1 = oMasterFile.Sheets(1).Cells(r, cBabyId).Value sBaby1 = sBaby1.Substring(1, iPosition) Nevermind. I figured it out. Not sure how to delete this posting. Apparently, I just needed to walk away for a bit and come back fresh. I guess VBA did not like Substring. sBaby1 = Left(sBaby1, iPosition - 1) |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
error 1324 Invalid character | Stuka | Office | 0 | 05-20-2017 08:50 PM |
![]() |
Jennifer Murphy | Word | 9 | 03-26-2017 11:21 PM |
Help with Invalid Use of Null Error | electronicpizza | Word VBA | 3 | 12-15-2014 02:15 AM |
![]() |
djclinton | Office | 1 | 09-18-2011 09:29 AM |
![]() |
impressionsIT | Outlook | 1 | 06-22-2011 08:31 AM |