Re: matching row number value with part of file name
Thanks! Can I get the 1st seven character of my cells value let's say Cell (5,1) to cell (8,1) all have the value of 20141101****. I want to to read the file of 20141101**** as well. Thanks!
Re: matching row number value with part of file name
The Mid() function has three (arguments) parameters
* The string to extract the sub-string from
* the starting position and
* the number of characters to return
Notice that in your code: Mid(cells(I, 1),0, 8)
you are trying to start at position zero in the string; that's an error. the number must be one or larger; but it can't be larger than the actual length of the test string.
substring = MID(teststring, starting position, num chars to fetch)
Last edited by protonLeah; 12-17-2014 at 04:12 PM.
Bookmarks