PC Review


Reply
Thread Tools Rate Thread

2007: Make Auto-format options document-specific

 
 
devistated
Guest
Posts: n/a
 
      20th Jan 2009
On any given day, I have to deal with documents that require completely
different auto-format setttings. For example, using normal modern documents,
the default auto-format settings are fine (change quotes to smart quotes,
change double dash to long hyphen, etc.) But I am also processing documents
from the 1940's that need to stay as closely as possible to the formatting of
the orignal documents (thus no smart quotes, no changing of double dashes to
long dashes, etc.).

I am constantly screwing up documents because I forgot to change the
auto-format settings and started working with one type of document while
another type of document's auto-format settings were still in effect.

Is there any way to save the auto-format settings with the document and then
have the autoi-formatting options automatically set to the correct settings
when I open that document again later?

This is a MAJOR hassle.
 
Reply With Quote
 
 
 
 
Greg Maxey
Guest
Posts: n/a
 
      20th Jan 2009
Not fully testted, but you might use a AutoOpen and AutoClose macro stored
in Normal.dotm. Something like this:

Sub AutoOpen()
Dim oDoc As Word.Document
Set oDoc = ActiveDocument
With Options
On Error Resume Next
MsgBox oDoc.Variables("AFRQ").Value
.AutoFormatReplaceQuotes = oDoc.Variables("AFRQ").Value
.AutoFormatReplacePlainTextEmphasis = oDoc.Variables("AFRPTE").Value
End With
End Sub

Sub AutoClose()
MsgBox "Test"
Dim oDoc As Word.Document
Set oDoc = ActiveDocument
With Options
oDoc.Variables("AFRQ").Value = .AutoFormatReplaceQuotes
oDoc.Variables("AFRPTE").Value = .AutoFormatReplacePlainTextEmphasis
End With
End Sub

You would have to write the additional code for all the options you want
covered. This way when a document is saved, the AutoFormat settings used in
the document is saved as variable values. When the document is opened again
those variable values set the the AutoFormat options.



devistated wrote:
> On any given day, I have to deal with documents that require
> completely different auto-format setttings. For example, using normal
> modern documents, the default auto-format settings are fine (change
> quotes to smart quotes, change double dash to long hyphen, etc.) But
> I am also processing documents from the 1940's that need to stay as
> closely as possible to the formatting of the orignal documents (thus
> no smart quotes, no changing of double dashes to long dashes, etc.).
>
> I am constantly screwing up documents because I forgot to change the
> auto-format settings and started working with one type of document
> while another type of document's auto-format settings were still in
> effect.
>
> Is there any way to save the auto-format settings with the document
> and then have the autoi-formatting options automatically set to the
> correct settings when I open that document again later?
>
> This is a MAJOR hassle.


--
Greg Maxey - Word MVP

My web site http://gregmaxey.mvps.org
Word MVP web site http://word.mvps.org



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make the word document auto show the format mistakes ? amanda Microsoft Word Document Management 2 19th Nov 2009 01:11 PM
RE: How to make the Auto Fill Options pop-up go away? ShaneDevenshire Microsoft Excel Discussion 0 2nd Nov 2008 06:15 PM
Re: How to make the Auto Fill Options pop-up go away? muddan madhu Microsoft Excel Discussion 0 2nd Nov 2008 05:42 PM
Auto-save document to specific location (dir) and with spec. name? oystlars@gmail.com Microsoft Word Document Management 1 27th Feb 2006 12:14 PM
Setting document-specific options in Word 2003 =?Utf-8?B?RGF2aWQ=?= Microsoft Word Document Management 1 11th Jan 2005 04:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 PM.