Solved

Need to pass multiple parameters in VBA code

Posted on 2016-09-01
2
50 Views
Last Modified: 2016-09-02
What would be the best way to pass multiple parameters in the string below? For example, var2, and var3

http://server/WebForm1.aspx?var1=" & strEnvelope
0
Comment
Question by:Member_2_7964962
2 Comments
 
LVL 20

Accepted Solution

by:
Russ Suter earned 500 total points
ID: 41780239
A query string will allow multiple parameters easily. Just separate them with the '&' character like this:

http://server/WebForm1.aspx?var1=" & strEnvelope & "&var2=" & strSomething & "&var3=" & strSomethingElse

Open in new window


VBA makes this parsing look a little ugly since it uses the same character for string concatenation. The end result URL should look something like:

http://server/WebForm1.aspx?var1=value1&var2=value2&var3=value3

Open in new window

0
 

Author Comment

by:Member_2_7964962
ID: 41780342
Thank you.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question