Re: Macro for table problems
- From: "john@xxxxxxxxxxxxx" <john@xxxxxxxxxxxxx>
- Date: 22 Oct 2006 03:40:05 -0700
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
1160588271.925401.211690@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, "john@xxxxxxxxxxxxx"
<john@xxxxxxxxxxxxx> wrote:
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
1160510606.557536.204030@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, "john@xxxxxxxxxxxxx"
<john@xxxxxxxxxxxxx> wrote:
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
1160320690.065921.236980@xxxxxxxxxxxxxxxxxxxxxxxxxxx, "john@xxxxxxxxxxxxx"
<john@xxxxxxxxxxxxx> wrote:
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 <john@xxxxxxxxxxx>
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 <john@xxxxxxxxxxx>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
.
- Follow-Ups:
- Re: Macro for table problems
- From: Clive Huggan
- Re: Macro for table problems
- References:
- Macro for table problems
- From: john@xxxxxxxxxxxxx
- Re: Macro for table problems
- From: Daiya Mitchell
- Re: Macro for table problems
- From: john@xxxxxxxxxxxxx
- Re: Macro for table problems
- From: Beth Rosengard
- Re: Macro for table problems
- From: john@xxxxxxxxxxxxx
- Re: Macro for table problems
- From: John McGhie [MVP - Word and Word Macintosh]
- Re: Macro for table problems
- From: john@xxxxxxxxxxxxx
- Re: Macro for table problems
- From: John McGhie [MVP - Word and Word Macintosh]
- Macro for table problems
- Prev by Date: Re: Macro for table problems
- Next by Date: Re: Re-order sections?
- Previous by thread: Re: Macro for table problems
- Next by thread: Re: Macro for table problems
- Index(es):