navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

VB Problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> VB Problem
Page: [1]
 
Jimkoh

 

Posts: 2
Joined: 12/7/2001
From:
Status: offline

 
VB Problem - 12/7/2001 13:47:07   
Hello,
I copied the following code from a MS KnowledgeBase Article and it works great in FP 2000; but it hangs in FP2002 at the the following line: CommandBars("Add Command").Controls("&File"). _
Controls("Save").Execute

Does anyone have any ideas?
Jim

Sub Save_All() 'Name of the macro 
'Checks that the document is in page view in FrontPage
'And that at least one page is open
If (Application.ActiveWebWindow.ViewMode = fpWebViewPage _
And ActiveWebWindow.PageWindows.Count > 0) Then
Dim activePage, page As PageWindow 'Declare variables
'current active page
Set activePage = ActivePageWindow
'Loop through all open pages
For Each page In ActiveWebWindow.PageWindows
page.Activate
'Click the save button for each apge
CommandBars("Add Command").Controls("&File"). _
Controls("Save").Execute
Next
'Display the apge you were working on when
'the Save All command was clicked
activePage.Activate
End If
End Sub
Page:   [1]

All Forums >> Web Development >> General Web Development >> VB Problem
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts