|
| |||
| Word 2003 macro question 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 |
| |||
| Re: Word 2003 macro question 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 - ********.com - nntp Postologist ~ "share the nirvana" - dbZen ~~~~~~~~~~~~~~~ > > "Damian" <Damian@discussions.microsoft.com> wrote in message news:BE71CE31-B821-4946-A043-09CFBCA2D29B@microsoft.com... > 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 |
| |||
| Re: Word 2003 macro question 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? "db" wrote: > 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 > - ********.com > - nntp Postologist > ~ "share the nirvana" - dbZen > > ~~~~~~~~~~~~~~~ > > > > > > "Damian" <Damian@discussions.microsoft.com> wrote in message > news:BE71CE31-B821-4946-A043-09CFBCA2D29B@microsoft.com... > > 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 > > . > |
| |||
| Re: Word 2003 macro question 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/communities...t.languages.vb -- db·´¯`·...¸><)))º> DatabaseBen, Retired Professional - Systems Analyst - Database Developer - Accountancy - Veteran of the Armed Forces - ********.com - nntp Postologist ~ "share the nirvana" - dbZen ~~~~~~~~~~~~~~~ > > "Damian" <Damian@discussions.microsoft.com> wrote in message news:12E32FFE-96BD-4CDD-8C41-ADAD05A941B4@microsoft.com... > 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? > > "db" wrote: > >> 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 >> - ********.com >> - nntp Postologist >> ~ "share the nirvana" - dbZen >> >> ~~~~~~~~~~~~~~~ >> > >> > >> >> "Damian" <Damian@discussions.microsoft.com> wrote in message >> news:BE71CE31-B821-4946-A043-09CFBCA2D29B@microsoft.com... >> > 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 >> >> . >> |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Word 2003 Macro document with Word 2007 | Vengeance52 | Microsoft Office | 2 | 07-07-2009 10:20 PM |
| Word 2003 question | Joy | Microsoft Office | 6 | 06-04-2009 11:00 AM |
| Word 2003, enable macro issue notification | mike brabet | Microsoft Office | 1 | 04-03-2009 03:40 AM |
| How to create a macro to format a set of words in Word 2003? | Debbie in Plano | Windows XP | 3 | 02-13-2008 09:50 PM |
| Macro warning when using Word 2003 in XP Pro | Popeye | Windows XP | 2 | 01-31-2007 12:45 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |