Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
alignment macro
hi all.
I have a document with different align formatting. Ex: Land and land rights Transportation infrastructure Land improvements Buildings and improvements Machinery and equipment Telecommunication equipment and infrastructure Mature plantations Transportation equipment Office equipment, furniture and fixtures ---------------------- For this I want to align all lines completely left. I recorded on macro viz. spaces. but it is not working properly. please help me. Sub spaces() ' Macro recorded 5/16/2008 by naren Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = " ^w" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop End With Selection.Find.Execute Replace:=wdReplaceAll End Sub Thank You Narendara Boga |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
alignment macro
You don't need a macro. Highlight all of the text, then press Ctrl +
E, then Ctrl + L. The Ctrl+ E centers text and the Ctrl + L left aligns text. Cheryl On May 15, 7:18 pm, Narendra Boga wrote: hi all. I have a document with different align formatting. Ex: Land and land rights Transportation infrastructure Land improvements Buildings and improvements Machinery and equipment Telecommunication equipment and infrastructure Mature plantations Transportation equipment Office equipment, furniture and fixtures ---------------------- For this I want to align all lines completely left. I recorded on macro viz. spaces. but it is not working properly. please help me. Sub spaces() ' Macro recorded 5/16/2008 by naren Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = " ^w" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop End With Selection.Find.Execute Replace:=wdReplaceAll End Sub Thank You Narendara Boga |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
alignment macro
wow..... thats great.
Thank You Cheryl Flanders. "Cheryl Flanders" wrote: You don't need a macro. Highlight all of the text, then press Ctrl + E, then Ctrl + L. The Ctrl+ E centers text and the Ctrl + L left aligns text. Cheryl On May 15, 7:18 pm, Narendra Boga wrote: hi all. I have a document with different align formatting. Ex: Land and land rights Transportation infrastructure Land improvements Buildings and improvements Machinery and equipment Telecommunication equipment and infrastructure Mature plantations Transportation equipment Office equipment, furniture and fixtures ---------------------- For this I want to align all lines completely left. I recorded on macro viz. spaces. but it is not working properly. please help me. Sub spaces() ' Macro recorded 5/16/2008 by naren Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = " ^w" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop End With Selection.Find.Execute Replace:=wdReplaceAll End Sub Thank You Narendara Boga |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
alignment macro
If the spacebar was pressed at the beginning of each line, centering
the text first with Ctrl + E will remove those spaces, then Ctrl + L will left align all text. The same can be achieved with the toolbar alignment buttons. Cheryl Is your alignment achieved using paragraph alignmentt commands? The just select all the paras and click the toolbar button for the desired alignment. But, if you put spaces at the start of each line then you'll just have to delete them. Aligning with spaces is something you should never do. -- Peter Aitken Author, MS Word for Medical and Technical Writerswww.tech-word.com |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
alignment macro
In article 01bde29b-7859-415a-a764-
, says... If the spacebar was pressed at the beginning of each line, centering the text first with Ctrl + E will remove those spaces, then Ctrl + L will left align all text. The same can be achieved with the toolbar alignment buttons. Cheryl Is your alignment achieved using paragraph alignmentt commands? The just select all the paras and click the toolbar button for the desired alignment. But, if you put spaces at the start of each line then you'll just have to delete them. Aligning with spaces is something you should never do. -- Peter Aitken Author, MS Word for Medical and Technical Writerswww.tech-word.com Well, how abut that! I never knew that the centering command would remove leading spaces! -- Peter Aitken Author, MS Word for Medical and Technical Writers www.tech-word.com |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Spell Check a protected Form with a Macro & already have forms picture macro | Microsoft Word Help | |||
Pause an executing Word Macro to enter info and then Macro continu | Microsoft Word Help | |||
Paragraph alignment in a macro | Microsoft Word Help | |||
macro runs from keyboard, but not from macro button-why? | Microsoft Word Help | |||
2000 to 2002 macro and "Could not open macro storage" | Mailmerge |