Re: Windows in Taskbar faulty in Word 2003

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Beth Melton (bmelton_at_NoSpam4Memvps.org)
Date: 06/20/04


Date: Sun, 20 Jun 2004 11:13:17 -0500

Hi Jay,

I'm unable to reproduce what you have described. Does the problem
continue to occur if you start Word using the /a switch? Go to
Start/Run and run:

winword /a

Note the space before the forward slash.

Also, the macro can not be placed in your Normal.dot and if it is in a
global template you need to go to Tools/Templates and Add-ins and
manually load it.

-- 
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.
~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP
Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
"HONYAKUKA" <honyakuka@aol.com> wrote in message
news:20040619230238.16597.00000184@mb-m22.aol.com...
> I don't know exactly what's causing this, so I can only give an
example.
>
> I have a macro that I use to make global changes in a document, such
as
> converting straight to curly quote marks.
>
> When I have Tools > Options > Windows in Taskbar unchecked, such
that all the
> Word document icons in the Taskbar are merged into one icon, running
this macro
> causes the screen to switch to another Word document. Specifically,
if multiple
> documents are open, this macro will cause the last document listed
in the
> Windows menu to come forward.  (If I run the macro in this document,
it stays
> forward --- doesn't switch to another document.)
>
> The title bar(?) at the very top of the window will appear in color
such that
> the document that comes forward looks like it is in focus, but the
document
> will not really be in focus.  I.e., I have to move the mouse/cursor
inside the
> document to select something to bring it in focus.  Otherwise, I
can't type in
> the document.
>
> This did not happen with Word 2000 and the WordInTaskbar.dot Add-In
installed.
> (By the way, I have removed this, so the problem is not interference
from a
> now-redundant Add-In.)  Also, it doesn't happen in Word 2003 when
Windows In
> Taskbar is checked.
>
> For reference, the macro code is as follows.  The switching of
windows occurs
> when the .Execute Replace line runs.  (The same problem occurs if I
write the
> macros as one macro rather than as one macro calling another.)
>
> *******************
> Sub FixApostrophesAndQuoteMarks()
>
> Call FindReplaceTextOnceThru("'", "'")
> Call FindReplaceTextOnceThru("""", """")
>
> End Sub
>
>
> Sub FindReplaceTextOnceThru(xFind$, xReplace$)
>
> Select Case Selection.Type
>     Case wdSelectionIP 'Assume entire document should be changed.
>         With Selection.Find
>             .MatchSoundsLike = False
>             .MatchWildcards = False
>             .MatchWholeWord = False
>             .ClearFormatting
>             .Replacement.ClearFormatting
>             .Forward = True
>             .Wrap = wdFindContinue
>             .Execute Replace:=wdReplaceAll, FindText:=xFind,
> ReplaceWith:=xReplace
>         End With
>
>     Case wdSelectionNormal, wdSelectionColumn, wdSelectionRow
>         With Selection.Find
>             .MatchSoundsLike = False
>             .MatchWildcards = False
>             .MatchWholeWord = False
>             .ClearFormatting
>             .Replacement.ClearFormatting
>             .Forward = True
>             .Wrap = wdFindStop
>             .Execute Replace:=wdReplaceAll, FindText:=xFind,
> ReplaceWith:=xReplace
>         End With
>
>     Case Else
>         'Do nothing (discontinue macro).
>
> End Select
>
> End Sub
> ************************
>
> Thanks for any assistance.
>
> Jay
>


Relevant Pages

  • Re: A Macro to Generate Jump Tables
    ... > Although your macro is indeed powerful, and I can see some value in using ... you have described your macro as "A Macro to Generate Jump ... programmer would write when creating a multi-way branch (i.e., switch) ...
    (alt.lang.asm)
  • Re: automatic data sorting?
    ... BUT let's switch to your last post in the *newest* thread. ... Please keep all correspondence within the Group, ... I used the macro recorder and set a hot key. ... Notice, you are going to sort based on the values in Colun B, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Windows in Taskbar faulty in Word 2003
    ... were you suggesting the " /a" switch for another purpose? ... Tools> Options> Windows. ... Why can't the macro I listed below be placed in Normal.dot? ... >> Case wdSelectionIP 'Assume entire document should be changed. ...
    (microsoft.public.word.application.errors)
  • Re: A Macro to Generate Jump Tables
    ... :relatively difficult and requires a *very* powerful macro subsystem. ... you have described your macro as "A Macro to Generate Jump ... only true if one's goal is to emulate an HLL switch syntax, ... since the programmer must enter the switch ...
    (alt.lang.asm)
  • evaluate contents and select correct column
    ... Below I have a little macro that executes a program with the '/project X' ... switch, where X is equal to the value in column D of the active row. ... Make it so that if I have multiple worksheets and the project_id moves ... Sub OpenPTS() ...
    (microsoft.public.excel.programming)