MacroLimitInWordDocument

M

mike

What is the maximum number of macros that can be used in a single word
document.
I have a Word document with a front page with 3 columns and multiple rows.
In column 2 & 3 there is a different macro buttons that when clicked on will
print a certain page in the document or go to a specific page in the document
so that it can be viewed.

thanks for any assistance,
 
D

Doug Robbins - Word MVP

Assuming that you are referring to macro button fields, according to the
information on the following webpage, you can have 32,000 of them

http://support.microsoft.com/kb/211489

There is however a limit of 150 macros, but with efficient coding, you
should be able to cope with that.

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 
M

mike

Doug
Thanks for the response. I am somewhat a novice in efficient coding.
How can I get around the limit. Basically I am looking at a limit of 75 pages.
Macro 1 = view page 2, macro 2 = view page 2 and so forth until I reach page
75.
If you can assist, would appreciate any help.
Again thanks for the help.
 
D

Doug Robbins - Word MVP

Use Selection.Information (wdEndOfRangeRowNumber) to get the number of the
row in which the selection is located and make use of that in the code.

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.

mike said:
Doug
Thanks for the response. I am somewhat a novice in efficient coding.
How can I get around the limit. Basically I am looking at a limit of 75
pages.
Macro 1 = view page 2, macro 2 = view page 2 and so forth until I reach
page
75.
If you can assist, would appreciate any help.
Again thanks for the help.
 

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