PC Review


Reply
Thread Tools Rate Thread

Can Sendkeys be used to send a selected no. of characters in a sin

 
 
Zakynthos
Guest
Posts: n/a
 
      14th Nov 2008
Say this is the data I have contained in a single cell c1:

PT NR 25 M (14h-20h),Tu (8h-14h45),W (8h-14h45),Th (8h-14h45),F
(8h-14h45),Sa (8h-16h)

Could I configure a sendkeys statament to send say the first 11
characters/spaces, say (up as far as the first bracket for instance) ?

The reason is that I want to input the code:Application.SendKeys "{{}" to
send an open bracet to this cell followed by, say: 14h-20h, followed by a
sendkeys statement for a closed bracket?

 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      14th Nov 2008
What exactly are you trying to accomplish?

Barb Reinhardt

"Zakynthos" wrote:

> Say this is the data I have contained in a single cell c1:
>
> PT NR 25 M (14h-20h),Tu (8h-14h45),W (8h-14h45),Th (8h-14h45),F
> (8h-14h45),Sa (8h-16h)
>
> Could I configure a sendkeys statament to send say the first 11
> characters/spaces, say (up as far as the first bracket for instance) ?
>
> The reason is that I want to input the code:Application.SendKeys "{{}" to
> send an open bracet to this cell followed by, say: 14h-20h, followed by a
> sendkeys statement for a closed bracket?
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      14th Nov 2008
Hi,

I'm not sure what your using sendkeys for. To build the string you require
use this

mystring = "{" & Trim(Left(Range("C1").Value, 11)) & "}"

After that I'm not sure what you want to do with the string

Mike

"Zakynthos" wrote:

> Say this is the data I have contained in a single cell c1:
>
> PT NR 25 M (14h-20h),Tu (8h-14h45),W (8h-14h45),Th (8h-14h45),F
> (8h-14h45),Sa (8h-16h)
>
> Could I configure a sendkeys statament to send say the first 11
> characters/spaces, say (up as far as the first bracket for instance) ?
>
> The reason is that I want to input the code:Application.SendKeys "{{}" to
> send an open bracet to this cell followed by, say: 14h-20h, followed by a
> sendkeys statement for a closed bracket?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SendKeys.Send Problem Berni Microsoft Dot NET Framework Forms 15 20th Nov 2008 01:40 AM
SendKeys.Send() atr2000 Microsoft VB .NET 4 31st Oct 2005 05:15 AM
SendKeys doesn't send todd Microsoft Dot NET Framework Forms 0 8th Mar 2005 04:17 AM
Sendkeys.send key combinations for 'Alt T' GrantS Microsoft C# .NET 0 8th Dec 2004 06:55 PM
Sendkeys.send key combinations for 'Alt T' GrantS Microsoft C# .NET 1 7th Dec 2004 07:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 AM.