Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I know how to replace all tabs with a general "something else"
edit--replace--more--special character--tab character...but how can I inform Word that I want to insert 4 spaces when I tab??? |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Hi ?B?TGl0dGxlX0ppbW15?=,
I know how to replace all tabs with a general "something else" edit--replace--more--special character--tab character...but how can I inform Word that I want to insert 4 spaces when I tab??? You'd need to use a macro for this that remaps the TAB key. Here's some sample code that makes the change in the current document, only. The first "Sub" changes the Tab key mapping. The second "Sub" is the macro that will now be called by pressing the TAB key (inserts the four spaces). The third macro will turn off the Tab key mapping, restoring the original behavior. If you don't know how what to do with these macros, you'll find a tutorial on the word.mvps.org site on how to use macros people give you over the Internet. Sub TabKeyInsertsSpaces() Dim kb As Word.KeyBinding Dim doc As Word.Document Set doc = ActiveDocument Application.CustomizationContext = doc Set kb = Application.KeyBindings.Add( _ KeyCategory:=wdKeyCategoryMacro, _ Command:="TypeSpaces", _ KeyCode:=BuildKeyCode(wdKeyTab)) End Sub Sub TypeSpaces() Selection.Text = " " Selection.Collapse wdCollapseEnd End Sub Sub ReleaseTabKey() Dim doc As Word.Document Set doc = ActiveDocument CustomizationContext = doc FindKey(BuildKeyCode(wdKeyTab)).Clear End Sub 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 :-) |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
do you mean
http://www.word.mvps.org/FAQs/Format...eanWebText.htm "Cindy M -WordMVP-" wrote, among otherstuff: If you don't know how what to do with these macros, you'll find a tutorial on the word.mvps.org site on how to use macros people give you over the Internet. |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
thanks, Cindy.
It does as you said |
#5
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
No, she means http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm. You
might also see http://www.gmayor.com/installing_macro.htm -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Little_Jimmy" wrote in message ... do you mean http://www.word.mvps.org/FAQs/Format...eanWebText.htm "Cindy M -WordMVP-" wrote, among otherstuff: If you don't know how what to do with these macros, you'll find a tutorial on the word.mvps.org site on how to use macros people give you over the Internet. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting up Tabs and Indentation to write programs in Word. | Formatting Long Documents | |||
Tabs and Forms | Microsoft Word Help | |||
The "Tab"s "enter"s and "space"s are shown as signs | Page Layout | |||
How can I replace single spaces with double spaces in a docume | Microsoft Word Help | |||
seeing symbols for tabs and spaces | Microsoft Word Help |