Word 2003 macro question

D

Damian

This is very simple, BUT I cant figure this out.

I want to ran this micro on all pages in my document.

"Selection.Tables(1).AutoFitBehavior (wdAutoFitContent)"

How can I do this for all pages in my document?

Thanks
 
D

db

sometimes you can create a similar
macro in excel and see the vb and
try to apply it to word.

--
db·´¯`·...¸><)))º>
DatabaseBen, Retired Professional
- Systems Analyst
- Database Developer
- Accountancy
- Veteran of the Armed Forces
- @Hotmail.com
- nntp Postologist
~ "share the nirvana" - dbZen

~~~~~~~~~~~~~~~
 
D

Damian

I tried it with ActiveWorkbook.Worksheets but it does not work.

How would you say do something for all the pages?
Would you use For?
 
D

db

not sure. my programming is a little
rusty now a days.

however, if it were me, I would not
try to use a select all methodology.

instead I would separate the vb
and have one set of code for each
table.

after you build sets of code for
each of the tables, you can
merge them into one one module.

this is all I can provide except for
this:

http://www.microsoft.com/communitie....aspx?dg=microsoft.public.dotnet.languages.vb



--
db·´¯`·...¸><)))º>
DatabaseBen, Retired Professional
- Systems Analyst
- Database Developer
- Accountancy
- Veteran of the Armed Forces
- @Hotmail.com
- nntp Postologist
~ "share the nirvana" - dbZen

~~~~~~~~~~~~~~~
 

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