Using VBA to see if a web is open

J

Jim Trick

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
 
J

Jim Buyens

-----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)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Trick

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top