K
kittronald
I'm trying to get information about files in a directory using Microsoft
Excel 2007 with a macro.
Cell A1 contains the text "Orange".
In the directory C:\Temp, there are three files:
Orange0-10-.csv
Orange1-10-.csv
Pear0-10-.csv
1) How can you determine the number of files in a directory whose name
starts with the value in cell A1 and assign that number to a variable ?
2) How can you get the numerical value between the two "-" characters
(i.e., 10) and assign that value to a variable ?
kittronald
Excel 2007 with a macro.
Cell A1 contains the text "Orange".
In the directory C:\Temp, there are three files:
Orange0-10-.csv
Orange1-10-.csv
Pear0-10-.csv
1) How can you determine the number of files in a directory whose name
starts with the value in cell A1 and assign that number to a variable ?
2) How can you get the numerical value between the two "-" characters
(i.e., 10) and assign that value to a variable ?
kittronald