08-26-2015, 10:46 AM
Let's say that I have a macro that creates variables from filenames in a folder, such that:
Folder C:\Folder1 has the files
fileName{topic1}.txt
otherFileName{topic2}.txt
And that the generated variables are:
var1 = fileName{topic1}.txt
var2 = otherFileName{topic2}.txt
And that I want to create a new variable from the contents inside the " { } " characters of that filename, such that
newVar1 = topic1
newVar2 = topic2
Could someone provide an example of how to extrapolate the contents inside the "{ }" of the variable that has the filename and create a new variable from that content, such as 'var1' & 'var2' above.
AND AS ALWAYS, THANK YOU!!!!!!!!!!!!!
Kent
Folder C:\Folder1 has the files
fileName{topic1}.txt
otherFileName{topic2}.txt
And that the generated variables are:
var1 = fileName{topic1}.txt
var2 = otherFileName{topic2}.txt
And that I want to create a new variable from the contents inside the " { } " characters of that filename, such that
newVar1 = topic1
newVar2 = topic2
Could someone provide an example of how to extrapolate the contents inside the "{ }" of the variable that has the filename and create a new variable from that content, such as 'var1' & 'var2' above.
AND AS ALWAYS, THANK YOU!!!!!!!!!!!!!
Kent