+ Reply to Thread
Results 1 to 3 of 3

SendKeys syntax problem

  1. #1
    Registered User
    Join Date
    11-10-2004
    Posts
    8

    Unhappy SendKeys syntax problem

    Can anyone please help.
    I am performing a search, that part of the code is working fine.
    When my result cell is activated, I would like to select both it, and the cell to the immediate right of it.
    I've tried using SendKeys, but I'm having difficulties with the syntax obviously.
    Please Login or Register  to view this content.
    I'm using the "plus"sign "+" for the SHIFT key to hold and select, but I'm obviously writing the {RIGHT} portion of the code incorrectly, as I get a run time error.
    Any assitance would be much appreciated. This is driving me nuts. Thanx in Advance.

  2. #2
    Bob Phillips
    Guest

    Re: SendKeys syntax problem

    Maybe try

    application.sendkeys ("+{RIGHT}")

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "VBAvirgin" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Can anyone please help.
    > I am performing a search, that part of the code is working fine.
    > When my result cell is activated, I would like to select both it, and
    > the cell to the immediate right of it.
    > I've tried using SendKeys, but I'm having difficulties with the syntax
    > obviously.
    >
    > Code:
    > --------------------
    > Application.SendKeys +("{RIGHT}")
    > --------------------
    >
    > I'm using the "plus"sign "+" for the SHIFT key to hold and select, but
    > I'm obviously writing the {RIGHT} portion of the code incorrectly, as I
    > get a run time error.
    > Any assitance would be much appreciated. This is driving me nuts. Thanx
    > in Advance.
    >
    >
    > --
    > VBAvirgin
    > ------------------------------------------------------------------------
    > VBAvirgin's Profile:

    http://www.excelforum.com/member.php...o&userid=16327
    > View this thread: http://www.excelforum.com/showthread...hreadid=497814
    >




  3. #3
    Registered User
    Join Date
    11-10-2004
    Posts
    8
    Thank You Bob for your quick & helpful response. I knew it was just a what goes where thing that was bogging me down. Thanx again my friend.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1