Solved

batch update with new html.

Posted on 2004-09-24
10
159 Views
Last Modified: 2013-12-24
I have 10 web pages that need to be updated the same way.

1) rows need to be removed.
2) coloring needs to be changed.
3) an some sizing properties need to be changed.

I want to write a macro in fp2003 to accomplish this.
The ten pages will be open.  All i want to do is click "Go" then bam batch update compete!

thanks in advance.

bp
0
Comment
Question by:brianpowell
  • 4
  • 3
10 Comments
 
LVL 29

Expert Comment

by:coreybryant
ID: 12142239
You could use find & replace if all the source code is the same.  But I do not think there is a macro for this

-Corey
0
 
LVL 1

Author Comment

by:brianpowell
ID: 12143358
I was thinking more along the lines of using

Dim objTable As FPHTMLTable

Set objTable = ActiveDocument.all.tags("table").Item(0)
'objTable.bgColor = "#99CCFF"

but i don't have enough experience with using the various objects, methods of
FP to due what i want, at least not yet.

bp

0
 
LVL 29

Expert Comment

by:coreybryant
ID: 12143447
You cousin might know. :)  Or possibly someone from the VBscripting.  I sure don't though.  This is why I have programmers.  LOL - I tell them what i want it to do.

-Corey
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Author Comment

by:brianpowell
ID: 12144075
i have this question x posted in the vb arena.

bp

referring to your find and replace:

Sub SimpleFindAndReplace()

    Dim objSearch As SearchInfo

    Set objSearch = Application.CreateSearchInfo

    objSearch.Action = fpSearchReplaceAllText
    objSearch.Find = "frist"
    objSearch.ReplaceWith = "first"

    ActiveDocument.Find objSearch

End Sub
0
 
LVL 1

Author Comment

by:brianpowell
ID: 12147148
this was part of my problem.
Note The SearchInfo object allows you to perform textual find and replace only. You cannot perform replace operations that modify HTML. To do this, you can use the DocumentHTML property to perform a global search and replace of all occurrences of a string. The DocumentHTML property returns a string that represents both the HTML and the text for a Web page.

bp

I was making an attempt to modify both the text and the html.  the html part was bombing out.
0
 
LVL 29

Expert Comment

by:coreybryant
ID: 12147169
So you got it on the other one?  I can delete / refund this question - or refund / PAQ the question if you would like

-Corey
0
 
LVL 1

Author Comment

by:brianpowell
ID: 12162802
Using "DocumentHTML" solved my issue.

bp
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12416156
PAQed, with points refunded (251)

Computer101
E-E Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Database solution for an NPO that facilitates training? 3 58
ASP.NET Fix Column Width 7 210
replace tables with divs, using templates(bootstrap) 9 340
bootstrap submit button 12 123
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question