Re: How to Make Tabbing work from VBA
- From: "John McGhie [MVP - Word and Word Macintosh]" <john@xxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 00:08:35 +1100
Gary:
No. We have never made it work. It's buggy, and they're not going to fix
it (because VBA is deprecated).
Microsoft has made the decision to retire VBA because by design it cannot be
adequately secured. Consequently, they are not going to put any further
development effort into it.
On the PC, use VBA.NET (or C sharp...). VBA.NET is actually a different
language that just happens to have similar syntax.
On the Mac, use AppleScript. Microsoft is putting all the available
(limited) resources into fixing and enhancing AppleScript as its Mac Office
scripting language. Alternatively, re-express your design in RealBasic,
which ships as an optional install for Mac Office.
Cheers
On 30/1/06 8:09 PM, in article C00317CD.42B%garyh@xxxxxxxxxxxx, "Gary
Hillerson" <garyh@xxxxxxxxxxxx> wrote:
> I'm trying to figure out how to get tabbing from field-to-field to work in
> userForms I'm creating with VBA in Word 2004 on the Mac. Right now, the only
> way to change focus is to click the mouse in another textbox, even tho the
> tab key properly generates an Exit event.
>
> As a simple test, I create a simple form with four controls: TextBox1,
> TextBox2, TextBox3, and a Cancel button that unloads the form.
>
> I implement the _Enter and _Exit methods of each textbox to display a debug
> message, e.g. "TextBox2_Enter"
>
> I type something into TextBox1 and then press the Tab key.
>
> I get an Exit event on TextBox1, and an Enter event on Textbox2, as
> expected.
>
> But then, I immediately see TextBox2_Exit, TextBox3_Enter, TextBox3_Exit,
> and TextBox1_Enter. The net result is that the same control (TextBox1) ends
> up with the focus.
>
> Even manually calling the SetFocus method of one textbox from another's Exit
> method doesn't work; the focus always cycles back to the textbox in which I
> press the Tab key.
>
> There must be some way to work around this tabbing problem, but I'm not
> finding it. Can anyone help?
>
> thanks
>
> Gary
>
--
Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.
John McGhie <john@xxxxxxxxxxx>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410
.
- Follow-Ups:
- Re: How to Make Tabbing work from VBA
- From: Gary Hillerson
- Re: How to Make Tabbing work from VBA
- References:
- How to Make Tabbing work from VBA
- From: Gary Hillerson
- How to Make Tabbing work from VBA
- Prev by Date: Re: Cutting and pasting images from Safari to Word
- Next by Date: Re: increase in file size ii
- Previous by thread: How to Make Tabbing work from VBA
- Next by thread: Re: How to Make Tabbing work from VBA
- Index(es):
Relevant Pages
|