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
Solved

batch update with new html.

Posted on 2004-09-24
10
158 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…

809 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