Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Am I in a textbox or in a frame

    Hi

    In a macro, I want to be able to find our whether the cursor is in a text box. Similarly for frames.

    Anyone know what property to use?
    Dale

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Am I in a textbox or in a frame

    Hi Dale,

    Try:

    Selection.ShapeRange.Count

    This will return 1 if you're in a textbox, and 0 if you're in a frame.

    Gary

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Am I in a textbox or in a frame

    Thanks, Gary. Intuitive, eh.
    Dale

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •