Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 4 Sep 2008 17:29:01 -0700,    group: microsoft.public.word.vba.general        back       


set link to previous to yes in the footer   
Hi,

I was trying to insert an autotexts to a word report document and make sure 
the footer is linked to the previous in VBA but can't seem to get it to work.

I have a template designed for Appendix and have set it up as an autotexts. 
When user would like to insert an Appendix to the report, he/she just presses 
a button (in macro) to insert it. My problem here is when the Appendix 
autotexts is added, i want the footer to be linked to the previous page so 
that i could get the numbering system to display on the appendix page.

I tried the following code (obtained from macro recorder) but it didn't work
     ActiveDocument.AttachedTemplate.AutoTextEntries("appendix").Insert _
              Where:=Selection.Range, RichText:=True

     ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter

     Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldPage

     Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter. _
        LinkToPrevious
     ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

Thank you in advance
date: Thu, 4 Sep 2008 17:29:01 -0700   author:   Associates

RE: set link to previous to yes in the footer   
Hi,

It's a bit too hard. I have given this up. However, i have another question. 
Since i have another option here and that is to ignore the numbering 
altogether for Appendix. Appendix is of style Heading 7.

My question is whether there is a way of showing just the "Appendix A" in 
TOC without showing the page number as follows

For example, 
Table of Contents
Section 1 Introduction ..........................1
Section 2 Selling Point ..........................2
Glossary .............................................3
Appendix A Calculation 
Appendix B Graphs
  
I am happy to just have the Appendix without the page number. Can this be 
done with Heading 7 style?

Your helps would be greatly appreciated

Thank you in advance

"Associates" wrote:

> Hi,
> 
> I was trying to insert an autotexts to a word report document and make sure 
> the footer is linked to the previous in VBA but can't seem to get it to work.
> 
> I have a template designed for Appendix and have set it up as an autotexts. 
> When user would like to insert an Appendix to the report, he/she just presses 
> a button (in macro) to insert it. My problem here is when the Appendix 
> autotexts is added, i want the footer to be linked to the previous page so 
> that i could get the numbering system to display on the appendix page.
> 
> I tried the following code (obtained from macro recorder) but it didn't work
>      ActiveDocument.AttachedTemplate.AutoTextEntries("appendix").Insert _
>               Where:=Selection.Range, RichText:=True
> 
>      ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
> 
>      Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldPage
> 
>      Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter. _
>         LinkToPrevious
>      ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
> 
> Thank you in advance
> 
>
date: Fri, 5 Sep 2008 22:52:04 -0700   author:   Associates

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us