Message 1 of 12
Change Excel link for all .ipt and .iam in folder

Not applicable
05-20-2019
03:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone!
Can anyone guide me how to change the Excel link in every .ipt and .iam file in a folder?
I need to change the Excel in a lot of files, and I know I can do it using
changeOK = GoExcel.ChangeSourceOfLinked(oldFileName, newFileName)
But how do i loop through all of the files in a folder? I can't seem to find the right line of code to do it.
Thanks in advance!
P.S.: if anyone also knows how to obtain the current Excel link in order for me to create a condition that if oldFileName = newFileName, it ignores and moves on to next folder would be greatly appreciated as well!