Home > Forum Home > Automating Data Analysis Tasks > Automating a web query login to download data > server query Share

Server query

Excel Help for Server Query in Automating Data Analysis Tasks


Forum TopicLogin

Server Query

Rate this:
(3/5 from 1 vote)
ConfusedMmm, Not sure if this is a genuine web query question... 
I've got this excel file that sends a query to an IBM iSeries. I want to automate it but it asks for an authentication... Is there a way that i can put my username and password inside this macro so it logs in automatically?

 VBA Code:
Sub UpdBtn_Update()
    'Excel 2000/XP
    Dim StarQuery As Object
    On Error GoTo Excel97_flag
    Set StarQuery = Application.COMAddIns("SymtraxStarQuery.ExcelAddin").Object
    On Error GoTo 0
    StarQuery.RunTable "\\iseries\STARQUERY\Queries\***.sqx"

    Exit Sub
Excel97_flag:
    'Excel 97
    Application.Run "SQRUNTABLE", "\\iseries\STARQUERY\Queries\***.sqx"
End Sub

 Posted by on
 
View Full Post

Find relevant Excel templates and add-ins for server query in the