What is WordBasic.ShowRepairs?

T

Tom G.

I recorded a macro in Word and the code that was written included the
following line:

WordBasic.ShowRepairs Name:="", SortBy:=0, Hidden:=0

What is this? Does anyone know? I am looking for a way to bypass the
ShowRepairs dialog and this looked kind of promising.

Tom G
 
H

Helmut Weber

Hi Tom,
if I google for showrepairs in microsoft.public* I get 0 postings.
If I google for "show repairs", note the space and the quotation
marks, I get 64 postings. Looks like there might be the information
you need.
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
 
C

Cindy M -WordMVP-

Hi Tom,
I recorded a macro in Word and the code that was written included the
following line:

WordBasic.ShowRepairs Name:="", SortBy:=0, Hidden:=0

What is this? Does anyone know?
I did some asking around, and got back the answer that basically, what
the macro recorder is giving you is wrong. And that this macro recorder
result can be considered "a bug" (IOW, it's not giving back your
actions accurately). Apparently, this is nothing you can use...
I am looking for a way to bypass the
ShowRepairs dialog and this looked kind of promising.
I'm not sure there's a way to do this if Word decides to display the
dialog box in the UI. But if this is via automation, have you tried
setting the OpenAndRepair argument to False?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
J

Jeff

WordBasic.ShowRepairs Name:="", SortBy:=0, Hidden:=0

WordBasic was Word's Macro language until Word97 came out.
Lagacy macros are run in VBA via the WordBasic object

If you lookup the "wordbasic" function help then click the link "Show VBA
equivalents" then "ShowRepairs" is not documented.

If this works when played back, then my guess is it's an undocumented
procedure like WordBaic.SortArray - the embarrassing solution to sorting an
array because MS forgot to provide that function in VBA :)))))
 
C

Cindy M -WordMVP-

Hi Jeff,

Before responding to an answer, I suggest you take a moment to read the ENTIRE
message thread :)
WordBasic was Word's Macro language until Word97 came out.
Lagacy macros are run in VBA via the WordBasic object

If you lookup the "wordbasic" function help then click the link "Show VBA
equivalents" then "ShowRepairs" is not documented.

If this works when played back, then my guess is it's an undocumented
procedure like WordBaic.SortArray - the embarrassing solution to sorting an
array because MS forgot to provide that function in VBA :)))))

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
H

Howard Kaikow

ShowRepairs is a built-in WordCommand that you can run from the Tools |
Macros menu.

I've never tried to find out what it does.
 
T

Tom G.

I'm not sure there's a way to do this if Word decides to display the
dialog box in the UI. But if this is via automation, have you tried
setting the OpenAndRepair argument to False?
It is via automation. Opening the document with OpenAndRepair set to False
is where I started. The document that I was trying to open was corrupt
(which is another puzzle to figure out) and requires the OpenAndRepair
feature. I am able to open the document using Word (not automation) only if
I choose Open and Repair from the Open dialog.

Is there a way to open these corrupt documents via automation without the
OpenAndRepair dialog popping up?

Thanks,

Tom
 
C

Cindy M -WordMVP-

Hi Tom,
Is there a way to open these corrupt documents via automation without the
OpenAndRepair dialog popping up?
Hmmmm. I guess the next question would be: why would you want to? Since if
this is popping up automatically it probably means Word isn't able to open
them in a reasonable manner, otherwise.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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