Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

batch update with new html.

Posted on 2004-09-24
10
Medium Priority
?
164 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

927 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