Macro: Substitution font and size

L

LGosvig

I'm collecting data (public, concerning law and legislation and therefore
fully legal) for a site in Frontpage. Our Parliament (from where I collect
the data) formats the text in Times New Roman, and with three different sizes
in the document.



I've been trying to code a macro that "selects all" and then changes the
font to Verdana, 10pt. I simply can't make it work.

Has anyone written such a macro allready and is willing to share

Best regards
 
M

Murray

You wouldn't want to use points to size your characters on the web page.
Use pixels, em, en, ex, percent, or font size names instead.

If you used CSS to specify your font characteristics, then this change might
be as simple as the edit of a single line in your stylesheet. Did you?
 
S

Stefan B Rusynko

Not a macro approach, but after you have the data in the page you could just use Edit Select All in design view and then format the
font site

Or wherever you are copying the data from (presumable to notepad or Word) edit it there before you paste in to the FP page
- if pasting direct from clipboard, first paste into an empty blank page in FP, convert the format, then paste into your real page

With a macro, You can't just apply a font globally to a page in FP if the page already has font tags
- the font tags in the page will override the page wide font tag or css styles
- your macro would have to "walk" thru the page, font every font size tag, and correct it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| I'm collecting data (public, concerning law and legislation and therefore
| fully legal) for a site in Frontpage. Our Parliament (from where I collect
| the data) formats the text in Times New Roman, and with three different sizes
| in the document.
|
|
|
| I've been trying to code a macro that "selects all" and then changes the
| font to Verdana, 10pt. I simply can't make it work.
|
| Has anyone written such a macro allready and is willing to share
|
| Best regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top