Change the source file name at run time

  • Hello,

    I have several excel files of the same format, same table format, but with different values. The table names and columns are exactly same.

    Now i want to change only the name of the files and the data to be transformed.

    What could be the best way to change source file name at run time.

    please help me..

     

    Thanks in advance.

  • I'd use an ActiveX script

    set oConnection = oPackage.Connections("ConnectionName")

      oConnection.DataSource = "FileName.xls"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply