Automate Changes to Form Properties

G

Greg Maxey

A few weeks ago I changed my User Feedback form. It is an .Asp file and
during the process, I saved the old form as User_feedback(Old).Asp and the
new form is User Feedback.Asp. When I did these changes, I verified that
the User Feedback button on my page banners all worked correctly.

Today I notice (I had forgotten about them) that I have a User Feeback form
button on each on many of my pages. When I pressed one of those I got the
web page is not available message.

When right click the form button, select "Form Propteries", click on
Options, I see that the Action setting is User_Feedback (Old).Asp. I can
change this to User Feedback.Asp. Save the page, publish and the button
works correctly.

I have 50 or 60 pages that I need to update. I don't know anything about
FrontPage macros. In Word I would use something like:

For Each Page in My Website
For Each FormButton In Page.FormButtons
If FormButton.Name = "User FeedBack" Then
FormButton.Options.Action = "User Feedback.Asp
End IF
Next
Next

Is there some Frontpage method of doing the same thing? Thanks.
 
R

Ronx

Use Search and Replace.
Edit->Replace

Find What: User_Feedback (Old).Asp
Replace With: Feedback.Asp

Select All Pages radio and "Find in source code" checkbox.
Click "Replace All"

In FP2003 this will search and replace all pages, with a warning that
you cannot undo the changes. In earlier versions each page with the old
page will be listed, then opened one by one for you to verify the
replacement.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
S

Stefan B Rusynko

You don't need VBA
Just use Find (User_feedback(Old).Asp) and Replace (User_feedback.Asp) in All Pages -Find in Code

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|A few weeks ago I changed my User Feedback form. It is an .Asp file and
| during the process, I saved the old form as User_feedback(Old).Asp and the
| new form is User Feedback.Asp. When I did these changes, I verified that
| the User Feedback button on my page banners all worked correctly.
|
| Today I notice (I had forgotten about them) that I have a User Feeback form
| button on each on many of my pages. When I pressed one of those I got the
| web page is not available message.
|
| When right click the form button, select "Form Propteries", click on
| Options, I see that the Action setting is User_Feedback (Old).Asp. I can
| change this to User Feedback.Asp. Save the page, publish and the button
| works correctly.
|
| I have 50 or 60 pages that I need to update. I don't know anything about
| FrontPage macros. In Word I would use something like:
|
| For Each Page in My Website
| For Each FormButton In Page.FormButtons
| If FormButton.Name = "User FeedBack" Then
| FormButton.Options.Action = "User Feedback.Asp
| End IF
| Next
| Next
|
| Is there some Frontpage method of doing the same thing? Thanks.
|
| --
| Greg Maxey/Word MVP
| See:
| http://gregmaxey.mvps.org/word_tips.htm
| For some helpful tips using Word.
|
|
 

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