Hi all,
I am a beginner to this technology VBA Excel.
I faced a problem in the project
When I try to hardcode the file name (with the Date) – there is a Value returned.
But when the file name is Dynamic (such as Today() – 1 etc.), then the function does not work.
See more details below:
----Thank you to all
I am a beginner to this technology VBA Excel.
I faced a problem in the project
- Read an external file and look for a Specific String (This external file name will change daily – as the Date – which will be part of the file name – will be dynamic)
- Return a Value from the 8th Column for the Matching Text
When I try to hardcode the file name (with the Date) – there is a Value returned.
But when the file name is Dynamic (such as Today() – 1 etc.), then the function does not work.
See more details below:
- I am looking for a DYNAMIC Value in the Quoted/RED highlighted area in the function below:
- =IF(FileExists(),VLOOKUP("NET EFFECT ON TRIAL BALANCE",'\\internal-de1\DE-PHS-Collections\DB\Processing_Summary\[PROC_SUMMARY_DB_DLY_
20190912
- I am looking for the TEXT Match for “NET EFFECT ON TRIAL BALANCE” within the file – and then returning a Total Value (the Net Balance) as a result.
- I am trying to have the FILENAME (Date) – Highlighted in Quoted/RED above – change on a Daily basis!
----Thank you to all