Hi all,
I `m having a problem. And I cannot find a solution for it.
I want to open an excel file with vba.
The location is always the same.
The file I want to open is built by , filename, date, random code, “.xlsx”.
I want to open the file with the latest date.
The problem is the random code.
I don`t know how to access and open the file with VBA, because I can`t handle the random code.
Does anybody have any ideas?
Location:
\\AMSTbiap05\E1SharedFolder\Sales\
Example filename at location.[TABLE="width: 565"]
<tbody>[TR]
[TD]Excess v5-en-us_2012-04-12T225445458Z.xlsx[/TD]
[/TR]
[TR]
[TD]Excess v5-en-us_2012-09-13T085902916Z.xlsx[/TD]
[/TR]
[TR]
[TD]Excess v5-en-us_2012-09-17T034355309Z.xlsx
…..
…..
…..
…..
[/TD]
[/TR]
</tbody>[/TABLE]
I `m having a problem. And I cannot find a solution for it.
I want to open an excel file with vba.
The location is always the same.
The file I want to open is built by , filename, date, random code, “.xlsx”.
I want to open the file with the latest date.
The problem is the random code.
I don`t know how to access and open the file with VBA, because I can`t handle the random code.
Does anybody have any ideas?
Location:
\\AMSTbiap05\E1SharedFolder\Sales\
Example filename at location.[TABLE="width: 565"]
<tbody>[TR]
[TD]Excess v5-en-us_2012-04-12T225445458Z.xlsx[/TD]
[/TR]
[TR]
[TD]Excess v5-en-us_2012-09-13T085902916Z.xlsx[/TD]
[/TR]
[TR]
[TD]Excess v5-en-us_2012-09-17T034355309Z.xlsx
…..
…..
…..
…..
[/TD]
[/TR]
</tbody>[/TABLE]