Importing an Excel File
Forums
Hi
I am just starting out on my IDEA scripting journey and was wondering if anyone could help me with some script for importing an Excel file. I am creating a macro which will be used by a colleague and I would like the macro to give the user the abilty to select the file that they wish to import. The import script in the history explicitly states the working folder and file name so this will not work when the file name changes.
I hope this makes sense!
Thanks
Chris
Hi Brian
Hi Brian
This is exactly what I was after; however, rather than displaying "Output Filename" as the name of the file imported (per the task.OutputFilePrefix = "Output Filename") is there a way of having this as the actual file name?
Thank you very much for your help.
Chris
Hi Chris,
Hi Chris,
Sorry I missed this post. What you might want to check out is my multi-file import script as I think it does what you are looking for. http://ideascripting.com/ideascript/import-multiple-files
HI fostc and welcome to the
HI fostc and welcome to the site.
You can use the fileopen function to allow the user to select the excel spreadsheet and then do the import. Here is some example code for you: