Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sendkeys and the "+"

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

perhaps.

--
Regards,
Tom Ogilvy


"John" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default 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" wrote in message
...
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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Application.SendKeys "%{down}" damorrison Excel Discussion (Misc queries) 3 June 3rd 06 09:09 PM
changing a SendKeys "(^+{home})" to a function filo666 Excel Programming 6 April 12th 05 08:32 PM
sendkeys "^v" behavior changed with the office 2003 version? Tarzan of the VisualBasic Gorillas Excel Programming 0 September 3rd 04 05:02 PM
SENDKEYS change the "Number Lock" status Kenneth Lam Excel Programming 1 May 23rd 04 12:37 PM


All times are GMT +1. The time now is 03:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"