Basic problem, but I can't get the hang of it.

In the code below, I want to replace the web address with a variable
called sAddress to open a web page.

Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE
www.washingtonpost.com"), _
vbNormalFocus

I've tried all kinds of variations similar to the below code using &,
but I can't find the way that works.

Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE sAddress"), _
vbNormalFocus

Re: variable for a web address in a Shell statement by Jezebel

Jezebel
Sat Mar 12 17:23:09 CST 2005

pAddress = "C:\Program Files\Internet Explorer\IEXPLORE.EXE " & sAddress
Shell pAddress, vbNormalFocus


"Larry" <larry328NOSPAM@att.net> wrote in message
news:uXiVTh1JFHA.2212@TK2MSFTNGP12.phx.gbl...
> Basic problem, but I can't get the hang of it.
>
> In the code below, I want to replace the web address with a variable
> called sAddress to open a web page.
>
> Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE
> www.washingtonpost.com"), _
> vbNormalFocus
>
> I've tried all kinds of variations similar to the below code using &,
> but I can't find the way that works.
>
> Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE sAddress"), _
> vbNormalFocus
>
>
>



Re: variable for a web address in a Shell statement by Larry

Larry
Sat Mar 12 19:18:40 CST 2005

Thanks much Jezebel. That works.

Larry





"Jezebel" <warcrimes@whitehouse.gov> wrote in message
news:#c2q0p1JFHA.2640@TK2MSFTNGP09.phx.gbl...
> pAddress = "C:\Program Files\Internet Explorer\IEXPLORE.EXE " &
sAddress
> Shell pAddress, vbNormalFocus
>
>
> "Larry" <larry328NOSPAM@att.net> wrote in message
> news:uXiVTh1JFHA.2212@TK2MSFTNGP12.phx.gbl...
> > Basic problem, but I can't get the hang of it.
> >
> > In the code below, I want to replace the web address with a variable
> > called sAddress to open a web page.
> >
> > Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE
> > www.washingtonpost.com"), _
> > vbNormalFocus
> >
> > I've tried all kinds of variations similar to the below code using
&,
> > but I can't find the way that works.
> >
> > Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE sAddress"),
_
> > vbNormalFocus
> >
> >
> >
>
>