Clive
I've tried to adapt the copy of your table, but I can't figure out how
to turn it into two columns rather than one.
John
(e-mail address removed) wrote:
Hi Clive
This just gets odder.
When I tried before to follow your suggestion, I highlighted your table
on p.124, changed borders to No borders (nothing happened with your
table) put line weight at zero (nothing happened with your table), and
then put Type of Border at No border (again nothing happened with your
table).
I've just tried it again. When I changed borders to No Borders, again
nothing happened, but this time when I put Type of Border at No Border
the lines DID disappear from your border.
So I copied it, plus preceding and succeeding para marks to a new
document, and selected it as AutoCorrect (I think Beth is right, and
it's quicker to work with that AutoText), and IT WORKED!
Which is really strange because even when AutoCorrect was throwing up a
version with borders it needed several tabs to get it to operate.
So I guess I should now try to see if it works when I alter your table
to the specs I want (2 columns, first bold, specific col widths etc).
Someone more technically adept than me at University College London
came up with a macro solution. She didn't write it all in Visual
Basic, but recorded a macro (which produced a table with borders in
spite of the specs of no borders), recorded another macro that simply
removed all borders, produced the results of both in Basic, and then
cut and pasted parts of the second macro into the first. The combined
Visual Basic macro produces the table to the specs I need.
I remember that many of you guys thought that a macro wasn't a good
idea, but for what it's worth, the following works, whereas my previous
attempts at recording a macro hadn't.
Do you still think its' a bad idea to use a macro?
Is it better to try and adapt Clive's table as an AutoCorrect?
John
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=1,
NumColumns:= _
2, DefaultTableBehavior:=wdWord9TableBehavior,
AutoFitBehavior:= _
wdAutoFitFixed
Selection.Tables(1).Select
Selection.Tables(1).Rows.LeftIndent = CentimetersToPoints(1.44)
Selection.Tables(1).PreferredWidthType = wdPreferredWidthPoints
Selection.Tables(1).PreferredWidth = CentimetersToPoints(12.69)
With Selection.Tables(1)
.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleNone
.Borders(wdBorderTop).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
.Borders(wdBorderVertical).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth050pt
.DefaultBorderColor = wdColorAutomatic
End With
Selection.Rows.AllowBreakAcrossPages = False
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.Tables(1).Columns(1).PreferredWidthType =
wdPreferredWidthPoints
Selection.Tables(1).Columns(1).PreferredWidth =
CentimetersToPoints(2.85)
Selection.Font.bold = wdToggle
Selection.MoveRight Unit:=wdCell
Selection.Tables(1).Columns(2).PreferredWidthType =
wdPreferredWidthPoints
Selection.Tables(1).Columns(2).PreferredWidth =
CentimetersToPoints(9.84)
Selection.Tables(1).Select
With Selection.Cells(1)
.WordWrap = True
.FitText = False
End With
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Clive Huggan wrote:
Hello John,
Just for my education: when you say "Word wouldn't let me remove the
borders
from your sample table", what did you observe when you went to Format menu
-> Borders and Shading -> Borders? Greyed-out border buttons in the
right-hand ("Preview") pane? And what did it look like when you printed
it?
(I'm aware that you said in another context "I wasn't seeing grey lines,
but
solid black ones that printed".)
I have reviewed all the posts in this thread and I believe all angles in
the
problem area have been covered. I only have two other ideas.
The first would be whether your problem is caused (or related to) the
presence of a haxie somewhere. For example, I found that some bizarre
things
occurred in Word when I installed iClip.
The second is to contact a local Apple retailer that has an employee who
knows Word well and who could review your actions while sitting next to
you.
The fee could be worth it. (I know you mentioned your colleague; I'm
thinking of someone who has more extensive day-to-day experience.)
Alternatively, you might find an expert in a local Mac user group. From
my
experience (including an example only this week in my own user group),
sitting side-by-side will sometimes reveal things being done that are not
reported in posts on a newsgroup because they appear fundamental to the
poster (but in reality can be highly significant). You should print out
the
relevant posts in this thread to show this person.
I am led to make the latter suggestion because no-one else is reporting
your
problem. However, I hasten to add that Intel-powered Macs are new and
some
problems have brought us into hitherto uncharted waters. I'm making that
suggestion because my next move, if I were in your situation, could well
be
to consider buying a second-hand PowerPC (pre-Intel) Mac. Now, I know
that's
extreme, and it would depend on how important the "lost" capability is in
your work. However, subject to the two suggestions I make above, I can't
think of anything else.
I certainly feel for you... :-\
Cheers,
Clive Huggan
============
On 26/10/06 9:18 PM, in article
(e-mail address removed), "(e-mail address removed)"
Hi Clive
Forgive the delay in response. I've been having some problems with the
Intel dual processor iMac that Apple replaced their replacement with.
Yes, I did try your suggestion. But:
1. Word wouldn't let me remove the borders from your sample table in
BWYW
2. After I copied it to a blank document, including both preceding and
succeeding para marks, it still wouldn't let me remove the borders.
Hence it was even obdurate than John's template, which at least copied
to the same document and retained the No Borders.
John
Clive Huggan wrote:
Hello John,
If it were not that your problem has so far been so intractable, I would
not
bother to post this -- I'm not at all confident that it will fix things.
But
here goes...
Did you get the same results when trying my suggestion of 13 October?:
"Here's a follow-on suggestion: remove the visibility of the horizontal
lines
(borders) in the sample table on page 124 of "Bend Word to Your Will"
and
select and copy the paragraph marks and the table, collectively. Paste
that
into a new blank document. Select again, then create an AutoText item.
Does
your problem persist? It *may* not, since you are creating the item
from
a
contributed sample -- one which among several other characteristics
does
not
contain Word 2004's default Table style that brings its own share of
problems."
Background: soon after Word 2004 was issued (or maybe it was an update
--
can't remember) I experienced a bizarre set of problems when copying the
tables referred to above -- but not always. In Word 2001 there had been
no
problem. I am fairly certain that one version of the problems (there
were
several) involved borders I had set to invisible becoming visible. I
also
noted at the time that Word had changed some of my styles to Table
Normal
(or Table Grid??? -- didn't record what it was; I was in a hurry and
hopping
mad that someone had fiddled with Word's established table mechanism,
adding
a "Word is here to help you" feature that hadn't been properly thought
through -- i.e., as with a great many of the problems we suffer in
Word).
I
went no further into it because (a) I discovered that this new
impediment
could be avoided by copying over the the paragraph mark that precedes
(i.e.,
is immediately above, and external to) the table when you select the
table
for copying, and (b) the aberrant behaviour was so varied.
(I also use AutoText for this purpose, not AutoCorrect, but that should
not
make any difference.)
Please note that some MVPs have told me they do not think it is
necessary
to
do what I describe on page 124 of "Bend Word to Your Will" -- especially
in
confining oneself to tailor-made styles and selecting the preceding
paragraph mark -- because they have not had problems. But the problems
I've
experienced are not consistently reproducible and I doubt that other
MVPs
copy tables as often as I do (I do that often in my professional work
because I deal extensively with contributed, or collaboratively
developed,
documents). I mention this not out of discourtesy to others but to make
clear that by following the instructions in Word's Help, and probably
John's
example, you will be eligible to reproduce the problems I have
experienced,
albeit that they *may* not be applicable to your underlying problem --
the
above may be a wild goose chase and may therefore only be useful to
unequivocally eliminate a potential factor. But one never knows...
Cheers,
Clive Huggan
=============
On 22/10/06 8:40 PM, in article
(e-mail address removed),
"(e-mail address removed)"
Hi everybody
As you may have seen from post 31 on this topic, I've delayed in
trying out your solutions to the table macro problem because of iMac
hardware problems.
I tried with the template that John kindly sent direct but, I'm afraid,
with no success.
I did read all the Help topics you suggested and studiously set all
means of styling table borders to None (although I never used Word's
own table styles because they didn't fit what I wanted.)
John's template resembled the one I had created, but I used his.
This is what happened.
1. When I copied and pasted into a blank document, it appeared as it
should.
2. When I copied and pasted into my book ms document, it appeared with
borders.
3. Using my book ms doc, I created a new Table Normal style based on
John's table and again set borders to None. It didn't make any
difference.
4. I selected John's table for an AutoCorrect entry, replacing ddddd
with John's table as Formatted Text and clicked Add.
5. When I went to my book ms and typed ddddd nothing happened, even
when I tabbed.
6. When I went to a blank document and typed ddddd nothing happened.
When I tabbed, the table appeared with borders.
7. I went back to the AutoCorrect list and found that next to ddddd was
John's table, BUT with borders (which weren't there when I added it to
the AutoCorrect list).
This is what I had found before I first posted this problem.
So there seems at least two problems here:
(a) AutoCorrect is not even kicking in with my book document and needs
a tab button to kick in after typing the first 5 letters (Word Help
says it should automatically correct after 4) in a blank document;
(b) Using John's template and switching to None all three means of
adding borders to tables, it is still adding borders.
Call me dumb, but I don't know the solution.
John
John McGhie [MVP - Word and Word Macintosh] wrote:
Hi John:
Before saving your table as an AutoText, select the table and use
Format>Style to Apply "Table Normal" style.
I suspect you have a Table style applied and have not realised it.
Table
Styles were new in Word 2004. They are quite hard to get rid of once
you
have a table style stuck in use.
1) Basically, create a blank document, then insert a new table.
2) Use Table>Insert>Table....
3) Make sure you choose AutoFormat and set it to (none) -- which is
right
at
the top of the list.
4) Now select the entire table and choose Format>Style
5) Choose the "Table Normal" style and Apply
Save THAT as your AutoText or AutoCorrect and the borders should go
away
and
stay away.
There's three sources of formatting for a table in Word: The
Format>Borders
and Shading dialog, the Table>...>AutoFormat dialog, and the
Format>Style...
Dialog. You have to set "None" in all three to kill the unwanted
borders.
Read the following Word help topics:
"About borders and shading"
"Add a border to a table or group of cells"
"Change a border in a table"
"What types of styles can you create and apply?"
"Create a new table style"
I think one problem you're having is that you are trying to avoid
getting
into the detail. But you're in a complex area: digging a little
deeper
will
enable you to understand the tools involved a lot better.
Cheers
On 12/10/06 3:37 AM, in article
(e-mail address removed),
"(e-mail address removed)"
Hi John
I tried this. When I Saved All it asked me did I want to save
changes
to template, I said yes. But same result. With a new document
AutoCorrect produced the table with all the properties EXCEPT it gave
it a (what I assumed was the previous default) border.
John
John McGhie [MVP - Word and Word Macintosh] wrote:
Hi John:
Go to Table>Insert>Table and insert a table to your satisfaction.
Make
sure
you check the box that says "Set as default for new tables".
Now hold down either Shift key and choose "Save All" to force a save
of
both
the document and the template. That saves the specification for
tables
like
the one you just produced.
Now go to Tools>Templates and Add-ins and make sure "Automatically
update
styles on open" is NOT checked. If it is, it will update your table
style
each time you open the document, and if your default table style has
borders, then borders you will have -- every time
If you save this as an Autocorrect, make sure you set "With" to
"Formatted
Text" otherwise it won't work properly.
Cheers
On 11/10/06 6:03 AM, in article
(e-mail address removed),
"(e-mail address removed)"
Hi Beth
I tried this and it worked while the document was open. But when I
saved the document, quit Word, opened again, and tried the
Autocorrect,
it produced the table but with borders.
This is what happened with Autotext. Once I save the document,
somehow
a defafult of a standard border for the table seems to override my
specs.
Since everyone says that a macro will corrupt, I really would
appreciate learning what I should do.
Many thanks
John
Beth Rosengard wrote:
Hi John,
I always use AutoCorrect instead of AutoText for these things
(habit).
I
just tried it with a table that had no borders at all and with bold
in
just
one cell. It reproduces fine.
I don't know why AutoText isn't working for you but try AutoCorrect
and
see
if it makes a difference.
By the way, when you get rid of table borders, they turn gray; they
don't
actually disappear (except when you print). Could that be what
you're
seeing?
--
***Please always reply to the newsgroup!***
Beth Rosengard
MacOffice MVP
Mac Word FAQ: <
http://word.mvps.org/Mac/WordMacHome.html>
My Site: <
http://www.bethrosengard.com>
On 10/8/06 8:18 AM, in article
(e-mail address removed),
"(e-mail address removed)"
Thanks, Dailya. The reason I tried a macro (which MIcrosoft
Support
recommended) was that I'd alrady tried Autotext. When I used this,
it
produced borders although the table I'd selected had none, and (if
I
remember correctly) it didn't have bold in one column as did the
selected table.
John
--
Please reply to the newsgroup to maintain the thread. Please do not
email
me unless I ask you to.
John McGhie <
[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst,
Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
--
Please reply to the newsgroup to maintain the thread. Please do not
email
me unless I ask you to.
John McGhie <
[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst,
Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410