Technology Questions

Go Back   Technology Questions > Software Questions > General Questions > Microsoft Office

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-28-2009, 07:40 AM
Damian
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-28-2009, 07:40 AM
  #2 (permalink)  
Old 10-28-2009, 09:40 AM
db
Newsgroup Contributor
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 10-29-2009, 05:40 AM
Damian
Newsgroup Contributor
 
Posts: n/a
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

>
> .
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 10-29-2009, 10:40 AM
db
Newsgroup Contributor
 
Posts: n/a
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

>>
>> .
>>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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?

All times are GMT -8. The time now is 03:23 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0