+ Reply to Thread
Results 1 to 4 of 4

sendkeys and the "+"

Hybrid View

  1. #1
    John
    Guest

    sendkeys and the "+"

    I am trying to send +, -, x, or / ....to an application using the SendKeys
    command.

    I am using the following command line
    SendKeys Format(Range("r6").Value, 1)

    where R6 equals the plus, minus, x or / ....everything works fine except
    for the plus sign? How can I send a plus sign to my application?

    thanks

  2. #2
    Tom Ogilvy
    Guest

    Re: sendkeys and the "+"

    Sendkeys left(range("r6").Text,1)

    perhaps.

    --
    Regards,
    Tom Ogilvy


    "John" <John@discussions.microsoft.com> wrote in message
    news:296BCEEC-89D8-4402-BAE4-B77E647D0CC9@microsoft.com...
    > I am trying to send +, -, x, or / ....to an application using the

    SendKeys
    > command.
    >
    > I am using the following command line
    > SendKeys Format(Range("r6").Value, 1)
    >
    > where R6 equals the plus, minus, x or / ....everything works fine except
    > for the plus sign? How can I send a plus sign to my application?
    >
    > thanks




  3. #3
    John
    Guest

    Re: sendkeys and the "+"

    That doesn't get it.

    here is the command again... the other one was just making it more difficult

    SendKeys Range("r6").Value

    If R6 is a plus sign... how do I tell VBA to send a plus sign?

    thanks

    "Tom Ogilvy" wrote:

    > Sendkeys left(range("r6").Text,1)
    >
    > perhaps.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "John" <John@discussions.microsoft.com> wrote in message
    > news:296BCEEC-89D8-4402-BAE4-B77E647D0CC9@microsoft.com...
    > > I am trying to send +, -, x, or / ....to an application using the

    > SendKeys
    > > command.
    > >
    > > I am using the following command line
    > > SendKeys Format(Range("r6").Value, 1)
    > >
    > > where R6 equals the plus, minus, x or / ....everything works fine except
    > > for the plus sign? How can I send a plus sign to my application?
    > >
    > > thanks

    >
    >
    >


  4. #4
    Steve Yandl
    Guest

    Re: sendkeys and the "+"

    John,

    When I write scripts, I know that the plus sign is one of the "special"
    characters that causes problems and requires that it be surrounded by curly
    braces, "{+}". I think I'd run a test with an if statement and include the
    curly braces in the case where the value of r6 is a plus sign.

    Steve


    "John" <John@discussions.microsoft.com> wrote in message
    news:7393ADD0-150B-4086-AC50-9B4071FB6221@microsoft.com...
    > That doesn't get it.
    >
    > here is the command again... the other one was just making it more
    > difficult
    >
    > SendKeys Range("r6").Value
    >
    > If R6 is a plus sign... how do I tell VBA to send a plus sign?
    >
    > thanks
    >
    > "Tom Ogilvy" wrote:
    >
    >> Sendkeys left(range("r6").Text,1)
    >>
    >> perhaps.
    >>
    >> --
    >> Regards,
    >> Tom Ogilvy
    >>
    >>
    >> "John" <John@discussions.microsoft.com> wrote in message
    >> news:296BCEEC-89D8-4402-BAE4-B77E647D0CC9@microsoft.com...
    >> > I am trying to send +, -, x, or / ....to an application using the

    >> SendKeys
    >> > command.
    >> >
    >> > I am using the following command line
    >> > SendKeys Format(Range("r6").Value, 1)
    >> >
    >> > where R6 equals the plus, minus, x or / ....everything works fine
    >> > except
    >> > for the plus sign? How can I send a plus sign to my application?
    >> >
    >> > thanks

    >>
    >>
    >>




+ 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