MacrosTB7113

R

RT&A

I can't make a toggle button to toggle on/off with one button, the Show Text Boundaries tick box in Tools\Options\View\Print and Web Layout options
 
C

Charles Kenyon

Put the following macro in your template and then use the Customize dialog
box to put a button for the macro on a custom toolbar.

Sub ToggleTBView()
ActiveWindow.View.ShowTextBoundaries = Not _
ActiveWindow.View.ShowTextBoundaries
End Sub

--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

RT&A said:
I can't make a toggle button to toggle on/off with one button, the Show
Text Boundaries tick box in Tools\Options\View\Print and Web Layout options
 
R

RT&A

Thanks that's great, Except it doesn't quite work! Comes up with "invalid use of property" on third line where it says "ActiveWindow et

----- Charles Kenyon wrote: ----

Put the following macro in your template and then use the Customize dialo
box to put a button for the macro on a custom toolbar

Sub ToggleTBView(
ActiveWindow.View.ShowTextBoundaries = Not
ActiveWindow.View.ShowTextBoundarie
End Su

--

Charles Kenyo

Word New User FAQ & Web Directory
<URL: http://addbalance.com/word/index.htm

Intermediate User's Guide to Microsoft Word (supplemented version o
Microsoft's Legal Users' Guide
<URL: http://addbalance.com/usersguide/index.htm

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome
--------- --------- --------- --------- --------- --------
This message is posted to a newsgroup. Please post replie
and questions to the newsgroup so that others can lear
from my ignorance and your wisdom

RT&A said:
I can't make a toggle button to toggle on/off with one button, the Sho
Text Boundaries tick box in Tools\Options\View\Print and Web Layout option
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UlQmQQ==?=,

Odd, I can't see anything in what Charles posted that should give that... Are you certain you see exactly what he posted in your code
window? I'm especially thinking you might have lost the _ after the Not?
it doesn't quite work! Comes up with "invalid use of property" on third line where it says "ActiveWindow etc

----- Charles Kenyon wrote: -----

Put the following macro in your template and then use the Customize dialog
box to put a button for the macro on a custom toolbar.

Sub ToggleTBView()
ActiveWindow.View.ShowTextBoundaries = Not _
ActiveWindow.View.ShowTextBoundaries
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

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

RT&A

I tried with all variations with no luck but eventually copied and pasted from Charles' message and it worked perfectly
Thanks for both your responses
Robi
----- Cindy M -WordMVP- wrote: ----

Hi =?Utf-8?B?UlQmQQ==?=,

Odd, I can't see anything in what Charles posted that should give that... Are you certain you see exactly what he posted in your code
window? I'm especially thinking you might have lost the _ after the Not
it doesn't quite work! Comes up with "invalid use of property" on third line where it says "ActiveWindow et
box to put a button for the macro on a custom toolbar
ActiveWindow.View.ShowTextBoundaries = Not
ActiveWindow.View.ShowTextBoundarie
End Su


Cindy Meiste
INTER-Solutions, Switzerlan
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003
http://www.mvps.org/wor

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