Re Command Button

  • Thread starter Thread starter Micah Chaney
  • Start date Start date
M

Micah Chaney

I'm using Outlook 2003
I managed to figure out the syntax for coding a Command Button, however, I'm
unable to figure out how, OnClick, to get the Cursor to move to a certain
field. Any help is much appreciated, thanks.
 
Is this in a VBA userform or an Outlook custom form? In both cases, you'd
use the SetFocus method to move to the desired control, but the syntax for
getting the control itself would be different.
 
This is an Outlook Custom Form. How do you use the SetFocus method? I can't
find it in Help.
 
See http://www.outlookcode.com/d/propsyntax.htm#unbound for the syntax to
get the control. Once you have that, it's:

objControl.SetFocus

It doesn't work all the time in Outlook forms, though, unfortunately.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Sue, once again Thank You -- You have got to be the absolute most wonderful
person in the world. It works beautifully. I appreciate your help again,
Thanks!
 
Back
Top