Hi farooq,
If all you want to do is clear all the tab stops in the document in one go,
use this instead:
ActiveDocument.Content.Paragraphs.TabStops.ClearAll
Otherwise, to add your macros to the toolbar,:
Tools > Customize...
In the Customize dialog:
Commands tab,
On the left, select Macros,
On the right, find your macro,
Then, drag it to the toolbar of your choice to create a button.
The button will bear the macro's full name, something like
"TemplateProject.NewMacros.Macro1", if you want to change that, immediately
after creating the button, right click on it and in the submenu that
appears, change its name.
Close the dialog box.
--
Cheers!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org
farooq said:
i recorded a macro...simple. i start at a line in a 250 page document.
what i want to do is clear all tab stops line by line...(because i hate
doing it myself line by line). so i recorded the macro. used arrow key to
jump down to next line. then went to Format Tabs...selected Clear All,
close and stop macro. this was named Macro1. but what i want to do is
create a button on a toolbar...so i can just click it, and it will run this
macro. and thus, i will keep running it til the end of the document.
someone help me please?