How to get dynamic path of excel

Hi all,
How to get a dynamic path address of excel file on excel activity for example:
file-010224-01.xlsx,file.010224-02.xlsx…

Hi @jnfantasy4

Could you be more specific for getting much clarification.

Hi @jnfantasy4

Use as below:-
FileDirectory =directory.GetFiles(folderPath,“file*”+system.DateTime.Now.ToString(“ddMMyy”)+“*xlsx”)

FileDirectory is the array of string.

If this works for you, please mark it as a solution, so others can refer the same… :slight_smile:

Thanks

and how about with the number of times 01,02,05…0n?

1 Like

Hi,

To handle this dynamically, I have use * before xlsx.

Thanks

Hi, It’s not work my file name is test.xlsx

Hi @jnfantasy4

Can you share the screenshots what are the formats of your filenames.

Regards

Hi,
My filename will be look like this.

Hi @jnfantasy4

Will the folder contains only .xlsx files? please specify
Input:

If the folder contains only .xlsx files then follow below process:

image

Hope it helps!!

oh,thank you very much

1 Like

You’re welcome @jnfantasy4

Happy Automation!!

Please help,

I have an Excel file “Excel Template” that I want to fill out

  1. Column A8 : C1000 will be filled with data from CSV that I have in the CSV folder
  2. Columns E1:K10 will be filled with images that I have in the Image folder
  3. Column E12 : K20 will be filled with a circle pivot graph obtained from the data in column A8:C100

Once finished it will be saved in a folder and given a name according to Excel “ListAccount” in the “Subaccount” column

The “Excel Template” file will loop according to the data in the “LisAccount” file

How to create a project like the flow above, so that the “Excel Template” file can run well?
Excel Template.xlsx (10.3 KB)
ListAccount.xlsx (9.3 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.