FP2000: Not All Metatags Are Displayed When You Use WebFile.MetaTags Command (219576)



The information in this article applies to:

  • Microsoft FrontPage 2000

This article was previously published under Q219576

SYMPTOMS

When you use the Visual Basic for Applications (VBA) WebFile.MetaTags command to display the meta information of a Web page, some metatags are not counted or displayed.

CAUSE

Some of the metatags that are created by FrontPage are used internally by the application. WebFile.MetaTags does not account for the metatags that FrontPage uses internally.

For example, if your page contains the following metatags
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Theme" content="boldstri 111, default">
<meta name="Microsoft Border" content="tl, default">
				
only the "GENERATOR" and "ProgId" metatags are displayed when you use a VBA macro that uses WebFile.MetaTags. This can be demonstrated by the following VBA macro:
	Sub meta ()
	   Dim afile as WebFile
	   Set afile=Webs(0).RootFolder.Files(0)
	   For Each m in afile.MetaTags
	      msgbox m
	   Next m
	End Sub
				

RESOLUTION

You can access these internal metatags through the Document Object Model (DOM). The "Microsoft Themes" and "Microsoft Border" metatags described in the "Cause" section of this article can be accessed by using File.Theme and File.SharedBorder, respectively.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbpending kbprogramming KB219576