Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

batch update with new html.

Posted on 2004-09-24
10
Medium Priority
?
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
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 connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
Suggested Courses

722 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