dantheman9
Board Regular
- Joined
- Feb 5, 2011
- Messages
- 175
In some of my code I need to replace infomation in a string, which forms part of a file name as follows;
file name
Test Splits Data.txt
to be renamed;
Test Results.txt
However, sometimes the text file names are like this;
Test Splits Data(0000).txt
When running the replace code above it seems to also remove the (xxxx) value to, how can I keep it in is the file name has that value.
file name
Test Splits Data.txt
to be renamed;
Test Results.txt
Code:
stripedt = Replace(sFileName, "Splits Data", "Results")
However, sometimes the text file names are like this;
Test Splits Data(0000).txt
When running the replace code above it seems to also remove the (xxxx) value to, how can I keep it in is the file name has that value.