Here is my code to refresh this query table within my 2007 excel file. However, the database I'm linked to has a password and I'm prompted to manually input the password everytime this line of code is run. Does anyone know how to tell it what the password is before hand, much like opening a file.
Code:
Worksheets("Name").Range("A1").ListObject.QueryTable.Refresh BackgroundQuery:=False