Change hyperlinks |
Changes start of every hyperlink in a document from old to
new text. This can greatly speed up changing or reorganizing a website. The file contains links to macros that process whole groups of files. The macro uses simply two simple one-dimension arrays, and so is suitable for study by anyone just starting to work with arrays.
|
Change Image Box Content
|
|
For Graphics boxes using the Image on Disk option. | Updates changed absolute or relative addresses of images. Processes all Image Boxes in a document. Updated to eliminate an infelicity and so that graphics in Text Boxes are processed. Uses a simple two-dimension array in a less simple Find and Replace routine. Now operates recursively also.
|
cleanup.zip
|
|
- fully or more gently
|
|
S_format
|
takes out multiple spaces, spaces before & after [HRt]s and multiple
[HRt]s. Regards double [HRt]s as paragraph delimiters. | If var FormatFlag does not exist (Global, from a calling macro), replaces single [HRt]s with spaces - useful for many ASCII files. Please see also Clean up para, which cleans up a paragraph at a time.
S_tidy
|
Calls S_format with FormatFlag set so that single [HRt]s are
retained.
|
|
Clean up spaces
|
|
Macro reduces all multi-spaces to single spaces, with no
spaces within listed paired codes. | Stores its data in a three-dimension array. The data may cause as much difficulty as the array. It contains a Procedure that may operate recursively. If you do not understand "recursively" in this context but wish to, then this macro is a suitable subject for study. Barry MacDonnell's DESPACER is a completely comprehensive treatment of the process.
|
Headings to Bookmarks
|
|
The macro Searches for and Bookmarks each [Para Style] it
finds, using the Heading text. This is useful for Publish to PDF.
Alternatively, it can Search for and Bookmark just the 8 built-in WP
Styles. | Stores its bookmarks and messages in two one-dimension arrays. Reasonably straightforward.
|
Paragraph spacer
|
|
Works from cursor pos. Converts all [HRt]s to [HRt][HRt],
thus inserting a blank line between paragraphs. | Then in the whole doc limits number of [HRt] sequences to [HRt][HRt] - eg: any [HRt][HRt][HRt] (which it may have created) are eliminated.
|
PunctFix.zip
|
|
Converts between English and French punctuation
|
|
PunctFix
|
Converts to/from CE/UK/US and CF/FR punctuation styles. | A number of options can be set, including whether to call QuotesFR. Uses no overt array, but contains some instances of using ForEach() with implicit one-dimensional arrays; sometimes simultaneously involving up to three such uses.
QuotesFR
|
Inserts hard spaces between EN or FR quotes and the enclosed text. | I do not have a macro that reverses the process.
|
Remove duplicate lines
|
|
Removes duplicate lines from a document. | Intended for *.txt file lists, but wider application is possible.
|
|
|
|
Blank out words
|
|
Macro converts selected text (or word at cursor pos) to
preset characters, perhaps to create a puzzle or _ _ _ _. | Much improved April 2018
|
Clean out http
|
|
Removes most or all html codes from the Open document; it calls macro
S_format in
cleanup.zip, which you should download
also. | Uses a small two-dimension array to Find and Replace in an easily understood way.
|
Compare Lists
|
|
Doc#1 may contain macro or other (?file)names, perhaps
without Paths; Doc#2 is a similar file, with or without Paths. Macro checks
Doc#2 for the presence of each line in Doc#1. The nature of the checking and
reporting done is determined by the inclusion/not of Paths. | Action: user chooses - - stop when no match found: user can then exit or continue checking; - if exit chosen, on restart execution continues at the same point. or - - produce a WP list of files Found or Not Found (or both) - which can generate a whole sequence of AND and/or NOT tests. Suitable lists can be generated by DocsList, List Files and List Files Found, where you find links to other list creators. A callback Dialog controls the initial phase of the macro, identifying files to work with (or not). The routine used is untypical; not a good example for a novice. The macro uses and manipulates a two-dimension array for its list of Open documents; uses two one-dimension arrays for lists of ToFind and Found items. Not a bad example for study. But it also uses Indirect(), which does not aid clarity.
|
Fix Address Numbers
|
|
Fixes all faulty addresses in a document, converting | eg: 10 12 High Street to 10-12 High Street Useful especially if many need fixing; useful model for number handling and repetitive action. Recast May 2018
|
FmtTbl.zip
|
|
Sends a WP Table to Presentations via QP, with specified borders.
|
|
FmtTbl
|
In WP, Selects current/previous/next Table; copies the WPTable to QP,
modifies borders/lines format according to choices made in a Dialog; copies
from QP, pastes into Presentations. |
FmtTbl.qpw
|
This Quattro Pro file accepts the formatting specified, and does much of
the calculation required.
|
QPGetOrg
|
Remarkably, seems required for some PS macros to run more than once. | The macro checks whether the QP target file is Open. If so, (Saves if you so choose), Closes and Opens it
|
|
Note: if a user maintains the Table in QP, the Table can be
copied to WP and/or to Presentations at will, with no need for this macro.
|
|
Get all Endnotes
|
|
Copies all endnotes' contents in a document to a WP file. | Details improved May 2018
|
Get email addresses
|
|
Use in a document containing email addresses, <=1 to a
line. | All but email addresses is eliminated.
|
Get graphics from filenames
|
|
In a document, finds path\names with specified extensions,
deletes them, inserts the graphics referenced by those path\names.
|
|
Merge Dialog fix
|
|
Overcomes limitation when typing in filename in WP merge
Dialog.
|
|
Merge with many files
|
|
Merges one datafile with multiple form files
|
|
Music Paper
|
|
Creates a document containing a Watermark A of staves
created as a Table according to choices made in a Dialog. The Watermark is set
to show on Every Page. This and other details may be tweaked in the macro
file.
|
|
OutLnLst.zip
|
|
Build and manipulate a two-level Outline list
|
|
OutLnLst
|
The macro automates the building of a two-level Outline document. | I designed it for and found it useful in building a list of macros under various headings. You create a List document - you can copy the formatted one included. You call the macro, and in a Dialog, you choose a file or files, or you can select some text in one/some lines and call the macro. A Dialog lists all Level 1 headings in the List document, the user chooses one, and the path\name/s (or whatever you use the macro for) is/are added to the end of the Level 2 items below that heading. Uses a one-dimension array to store the headings found and show them in a Dialog.
!MacTmpt.wpd
|
A document embodying the format expected by the macros.
|
OutLnSrt
|
This macro Sorts the Level 2 content of an Outline document created using
OutLnLst (or very similar). | The Sort routine is optimized for file lists. Uses a two-dimension array to store values found and later report them.
OutLnDup
|
This macro finds any duplicate filenames (path ignored) in the Level 2
content of the Outline document
|
|
Remove formatting
|
|
Converts current document to Unformatted Text. | I use this on any M$ Word docs I am asked to fix. Macroists may note that it also converts Codes to text representations of those Codes - useful for posting to newsgroups. NOTE: That feature is lost from v11 onward For Word, Mike Koenecke's macro in MAKMacros.zip is less drastic.
|
|
|
|
|
|
These macros are (as expected) designed for editing html within
WP. | I use Tables; if you do not, many will not suit you. Some further depend on the format I use to list files and subfiles. However, since the documents are treated and Saved as ANSI (Generic Wordprocessor) text, they - or at least the ideas they contain - can be used with many other types of document.
|
Check file directory
|
|
Checks whether path\filename in current doc line (or names
in entire document) is/are found in specified file lists. | The file lists may have been produced using List Files Found. Builds a list of misattributions, which can be a ToDo list. Uses a two-dimension array to which it adds extra elements; so, if that is what you wish to do . . .
|
Create back-references
|
|
After entering the comments
about eg: arrays in all five main files, I created a file
containing just the graphic elements and a [here] text marker. This macro
added to
that file almost everything else, including the
references back to the main files. | It did take a little time to set up, but I made a profit on the deal. Uses a small one-dimension array to list the main files.
|
Format ANSI html doc
|
|
Makes eg: width all caps., and other items lower
case. | Adjusts vertical spacing between items. Designed to be easily tweaked. - If a document has acquired an excess of [HRt]s, perhaps because Saved As ASCII/ANSI, I run Clean up para, followed by this macro. It includes two routines designed to restore the formatting that I require, which may easily be removed.
|
List Images in | Document
|
Lists all <img src... images in current document or in a
list of files. | Checked May 2018 Uses a one-dimension array in a standard way.
|
List Images in | Table
|
Reports all <img src... images within current
Table. | Uses a one-dimension array in a standard way, though a Procedure is involved (passing variable addresses), which may or may not be a welcome complication.
|
List titles and zip files in Table
|
|
Lists all zipfiles, associated titles/display names and
subfiles in an html file like this one. From this Table Cell: | <TD>(with usual eg:WIDTH=items) <a href=/download/LisFiles.zip>List titles and zip files in Table</a> the macro will produce LisFiles.zip List titles and zip files in Table It offers to remove all file extensions (and the summary it creates). Then the result is suitable for eg: "List Xrefs..." below. This macro is based on the original "List zip files in Table", below. Uses two one-dimension arrays: suitable for novice study, though the purpose of the macro is rather specialised.
|
List Xrefs using File List
|
|
The macro file contains a list of related html documents. It
expects the current document to be a list file (probably produced by "List
titles..." above), named so that the macro can identify which html file is to
be the source document. | The macro reports instances of the items in the list document that it finds in the related documents (except the source html document), so that Xrefs may more easily be created/checked. Uses a one-dimension array in a fairly standard way, though the purpose of the macro is rather specialised.
|
Listzips.zip
|
|
From one or a sequence of html documents, extract a list of zip
files to be created
|
|
Allzips
|
|
Expects an html doc (like this page) that lists files, with filenames
consistently in the same Cell of successive Rows (not necessarily all Rows) in
the current Table. Produces a list of prospective zip files and if appropriate
of files to be contained in the zip files. It processes the current document
or all documents in a file list. | Uses a one-dimension array in a fairly standard way, though the purpose of the macro is rather specialised.
SplitZps
|
|
From the output of Allzips creates one list of single-file
zipfiles and a second of multi-file zipfiles.
|
|
|
|
ZipList.zip can
process the resulting lists. Upload
Files finishes the job. | You find them here.
|
Look up current filename
|
|
Finds filename in current document line; discovers in a
Lookup file the name of a file containing the filename; Opens the file if
necessary and Finds the filename in it.
|
|
Open macro related to zip file
|
|
This is a modified section of Macros menu plus. It checks in the
current line for the presence of a macro name (perhaps including
drive:path\)and if found Opens it for Edit. The extra feature is that if it
finds a *.zip it changes the zip to wcm and tries to Open that
macro file. | Uses a one-dimension array in an easily comprehensible way.
|
Quote digits
|
|
Ensures that digits following an equals sign are
enclosed in double quotes. | Example: = 123445 becomes = "123445" Re-edited May 2018 Naturally, it is adaptable for other similar circumstances.
|
Save doc, Open in browser
|
|
Saves current file - if *.htm or *.html, saves as ANSI
wordprocessor | - if the file is *.wpd, Saves As *.htm as above and reOpens the *.wpd - and either way tells Windows to Open the htm file. It does not convert text or formatting: it is not [Publish to HTML].
|
Save incremental version
|
|
A basic but effective macro that Saves the Open file under
the same base name, as ANSI Wordprocessor, incrementing a number at the end of
the filename. If such a number is found, the macro can instead overwrite the
original file. | Barry MacDonnell's NewFN# is a fully developed version for .wpd files.
|
Sort http Table
|
|
Alpha-Sorts the body of an html (not WP) Table on Column A. | It sorted this alphabetical list of these macros. It has not been tested on other Table formats.
|
Table: generate structure and fix colspan
values
|
|
Computes a set of columns with widths that match the
<td..> widths it finds, even if overlapping. Identifies where
COLSPAN=commands are needed and (after global confirmation) implements
them. | Uses and manipulates a two-dimension array in a fairly involved way; the purpose of the macro is rather specialised.
|
WP Codes to html Tags
|
|
Converts a WP document to html, changing eg: [Bold] to
<b>, converting also Hard Returns, Hyperlinks and Bookmarks. | The aim is to easily update body text in an html file. A WP document is updated, converted, Copied, and Pasted at a placeholder in the html file. Another macro (not listed here) calls this macro, then Saves and uploads the result. Uses one two- and one four-dimension array, both small, to control F&R routines.
| |
and |
may also include relevant macros
|
|
You see
here an alphabetical list of all macro titles.
Bad link?
|
| |