+ Reply to Thread
Results 1 to 1 of 1

Passing VBA Variables to a Web Query

  1. #1
    Registered User
    Join Date
    07-31-2009
    Location
    Darien, IL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Passing VBA Variables to a Web Query

    Hi everyone,

    I have username and password data that need to be sent to a web query, but for security reasons, I don't want either one to appear on the spreadsheet. To get around this, I made a UserForm that runs when the workbook opens to get the data into VBA variables, but I don't know how to then pass this data to a query. The query goes to a PHP SOAP client that requires authentication, so I can't send requests without a username and password, and yet I don't want them to appear on the screen. What I want to know is if there is a way to either:

    1) Refer to VBA variables in a query so that the data inside the variables gets sent.

    2) Write a macro that builds and executes a dynamic query at runtime.

    Thanks!
    Last edited by agwright; 07-31-2009 at 02:56 PM. Reason: clarity

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1