Folks,

I have several browsers installed in my machine so I can test my webpage for
compatibility. Every time I use the "Preview in Browser" choice under the
File menu, the next time I click on the "Preview in Browser" icon in my
toolbar, it will preview in the browser I selected when last used the
"Preview in Browser" choice using the File menu. In other words, when you
"Preview in Browser" using the File menu choice, you can choose the browser
in which you want to preview your page; while when you "Preview in Browser"
using the icon in your toolbar, you don't have a choice of browsers (it will
use the last one selected).

I would like to add custom icons to my toolbar to preview my page in
different browsers (one icon per browser). Does anybody knows what would be
the line in a vba macro that would produce the same result as the "Preview
in Browser" choice under the File menu in FrontPage 2002, specifying the
browser to be used?

Thanks to all who contribute to answer this question.

JOCA

Re: An easy one. A one-line (I hope) vba macro to "Preview in Browser" by MD

MD
Sat Sep 27 05:06:14 CDT 2003

Hi JOCA,

That would not be a "one line macro" to accomplish this.

FP3 will provide a drop button that will allow you to choose the browser.

--
Mike -- FrontPage MVP '97-'02
J-Bots Plus 2002 End of Summer Sale You Save $20.00
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
----------------------------------------------------------------------------
--------------------
If you think I'm doing a good job, let MS know at mvpga@microsoft.com

"JOCA" <jose_castano@hotmail.com> wrote in message
news:oI2db.113881$z32.23117@twister.austin.rr.com...
> Folks,
>
> I have several browsers installed in my machine so I can test my webpage
for
> compatibility. Every time I use the "Preview in Browser" choice under the
> File menu, the next time I click on the "Preview in Browser" icon in my
> toolbar, it will preview in the browser I selected when last used the
> "Preview in Browser" choice using the File menu. In other words, when you
> "Preview in Browser" using the File menu choice, you can choose the
browser
> in which you want to preview your page; while when you "Preview in
Browser"
> using the icon in your toolbar, you don't have a choice of browsers (it
will
> use the last one selected).
>
> I would like to add custom icons to my toolbar to preview my page in
> different browsers (one icon per browser). Does anybody knows what would
be
> the line in a vba macro that would produce the same result as the "Preview
> in Browser" choice under the File menu in FrontPage 2002, specifying the
> browser to be used?
>
> Thanks to all who contribute to answer this question.
>
> JOCA
>
>



Re: An easy one. A one-line (I hope) vba macro to "Preview in Browser" by JOCA

JOCA
Sun Sep 28 01:42:29 CDT 2003

Dear Mike,

Thanks for the tip about the toolbar icon that allows you to choose the
browser.

Still, out of curiosity, wouldn't there be a line of code on the lines of :

ActiveDocument.PreviewInBrowser(1)

(I know the line above does not exist. It just represents an abstract idea.
Treat it as pseudocode)

or something like that?

Thanks

JOCA



Re: An easy one. A one-line (I hope) vba macro to "Preview in Browser" by MD

MD
Mon Sep 29 12:44:45 CDT 2003

No, because the command File | Preview In Browser opens a dialog box that is
not under the control of the object model.

The best you could do is open the dialog box.
--
Mike -- FrontPage MVP '97-'02
J-Bots Plus 2002 End of Summer Sale You Save $20.00
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
----------------------------------------------------------------------------
--------------------
If you think I'm doing a good job, let MS know at mvpga@microsoft.com

"JOCA" <jose_castano@hotmail.com> wrote in message
news:ppvdb.120107$z32.92304@twister.austin.rr.com...
> Dear Mike,
>
> Thanks for the tip about the toolbar icon that allows you to choose the
> browser.
>
> Still, out of curiosity, wouldn't there be a line of code on the lines of
:
>
> ActiveDocument.PreviewInBrowser(1)
>
> (I know the line above does not exist. It just represents an abstract
idea.
> Treat it as pseudocode)
>
> or something like that?
>
> Thanks
>
> JOCA
>
>



Thanks by JOCA

JOCA
Mon Sep 29 20:11:49 CDT 2003

Thanks Mike,

JOCA