• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fields in Word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fields in Word


  • Subject: Re: Fields in Word
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 17 Feb 2008 18:18:19 -0800
  • Thread-topic: Fields in Word

Which version of Word? There have been three for Word in OS X: Word X, Word
2004, Word 2008.

If the student has Word X or 2004, he should be able to run the identical
VBA macro as on Word Windows.

If he has Word 2008, which just came out a few weeks ago, it doesn't have
VBA but yes, it should be able to be converted to AppleScript. That should
also work in 2004, but not X.

Instead of reinventing the wheel, he could just use the macro in X or 2004.
If he has 2008, open the macro in Word Windows or X or 2004, and copy the
code. It shouldn't be difficult to convert it, though the way you get
headers and footers in AppleScript is different than in VBA, due to the same
can't-have-elements-because-they're-read-only-so-need-to-use-a-command we
were discussing re Excel two days ago.

--
Paul Berkowitz


> From: Ed Stockly <email@hidden>
> Date: Sun, 17 Feb 2008 15:06:03 -0800
> To: Applescript Users <email@hidden>
> Subject: Fields in Word
>
> I'm helping a student who is working on a graduate project and having
> a problem migrating to Word on Mac OS X.
>
> In Windows they have a visual basic script that allows them to set
> the page number in the header to the page number for the section, and
> the page number in the footer for the page number in the document.
>
> So, If there are 10 pages in section 1 and the page numbers are set
> to back to 1 in section 2, then the page number on page 12 in the
> header would be: 2 and in the footer would be 12.
>
> In OSX both the header and footer display 2.
>
> It looks like just editing the field code might work, but it doesn't,
> which is why I believe they were using VB.
>
> Can AppleScript be used to set a formula in a field adding a value
> the page number?
>
> Any suggestions?
>
> ES
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Fields in Word (From: Ed Stockly <email@hidden>)

  • Prev by Date: Fields in Word
  • Next by Date: Re: Broken date math on AppleScript 2.0
  • Previous by thread: Fields in Word
  • Next by thread: Re: Fields in Word
  • Index(es):
    • Date
    • Thread