I'm writing a routine using VBA to automate updating of
shared border information (see post on 27 Dec) but need to
check to see if a web has actually been opened in FP. I've
tried different approaches using various FP properties,
but can't make it work. Any help would be appreciated.

Thanks.

Jim

re: Using VBA to see if a web is open by Jim

Jim
Tue Dec 30 17:03:51 CST 2003

>-----Original Message-----
>I'm writing a routine using VBA to automate updating of
>shared border information (see post on 27 Dec) but need
>to check to see if a web has actually been opened in FP.
>I've tried different approaches using various FP
>properties, but can't make it work. Any help would be
>appreciated.


If ActiveWeb Is Nothing Then
MsgBox "No Web is open."
Else
MsgBox "A Web is open."
End If


Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------


re: Using VBA to see if a web is open by Jim

Jim
Tue Dec 30 19:23:13 CST 2003

Thanks much! Works fine on its own - turns out another
error in my routine is causing this block not to work.
More study required.

Cheers,
Jim
>-----Original Message-----
>>-----Original Message-----
>>I'm writing a routine using VBA to automate updating of
>>shared border information (see post on 27 Dec) but need
>>to check to see if a web has actually been opened in FP.
>>I've tried different approaches using various FP
>>properties, but can't make it work. Any help would be
>>appreciated.
>
>
>If ActiveWeb Is Nothing Then
> MsgBox "No Web is open."
>Else
> MsgBox "A Web is open."
>End If
>
>
>Jim Buyens
>Microsoft FrontPage MVP
>http://www.interlacken.com
>Author of:
>*----------------------------------------------------
>|\---------------------------------------------------
>|| Microsoft Office FrontPage 2003 Inside Out
>||---------------------------------------------------
>|| Web Database Development Step by Step .NET Edition
>|| Microsoft FrontPage Version 2002 Inside Out
>|| Faster Smarter Beginning Programming
>|| (All from Microsoft Press)
>|/---------------------------------------------------
>*----------------------------------------------------
>
>.
>

Re: Using VBA to see if a web is open by MD

MD
Wed Dec 31 07:54:32 CST 2003

Post the code.

--
Mike -- FrontPage MVP '97-'02
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

"Jim Trick" <anonymous@discussions.microsoft.com> wrote in message
news:05c001c3cf3c$a8996b40$a101280a@phx.gbl...
> Thanks much! Works fine on its own - turns out another
> error in my routine is causing this block not to work.
> More study required.
>
> Cheers,
> Jim
> >-----Original Message-----
> >>-----Original Message-----
> >>I'm writing a routine using VBA to automate updating of
> >>shared border information (see post on 27 Dec) but need
> >>to check to see if a web has actually been opened in FP.
> >>I've tried different approaches using various FP
> >>properties, but can't make it work. Any help would be
> >>appreciated.
> >
> >
> >If ActiveWeb Is Nothing Then
> > MsgBox "No Web is open."
> >Else
> > MsgBox "A Web is open."
> >End If
> >
> >
> >Jim Buyens
> >Microsoft FrontPage MVP
> >http://www.interlacken.com
> >Author of:
> >*----------------------------------------------------
> >|\---------------------------------------------------
> >|| Microsoft Office FrontPage 2003 Inside Out
> >||---------------------------------------------------
> >|| Web Database Development Step by Step .NET Edition
> >|| Microsoft FrontPage Version 2002 Inside Out
> >|| Faster Smarter Beginning Programming
> >|| (All from Microsoft Press)
> >|/---------------------------------------------------
> >*----------------------------------------------------
> >
> >.
> >