batch update with new html.

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
LVL 1
brianpowellAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Computer101Connect With a Mentor Commented:
PAQed, with points refunded (251)

Computer101
E-E Admin
0
 
coreybryantCommented:
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
 
brianpowellAuthor Commented:
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
coreybryantCommented:
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
 
brianpowellAuthor Commented:
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
 
brianpowellAuthor Commented:
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
 
coreybryantCommented:
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
 
brianpowellAuthor Commented:
Using "DocumentHTML" solved my issue.

bp
0
All Courses

From novice to tech pro — start learning today.