Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Can Sendkeys be used to send a selected no. of characters in a sin

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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Can Sendkeys be used to send a selected no. of characters in a sin

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Can Sendkeys be used to send a selected no. of characters in a sin

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
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
how do I send selected cells in an e-mail using excel 2007? Amanda Bledsoe Excel Discussion (Misc queries) 1 July 9th 08 09:41 PM
Send parameters in worksheet button 255 characters Greg Lovern Excel Programming 0 January 17th 08 11:26 PM
Send sheet to selected distribution list using VBA bsnapool[_15_] Excel Programming 1 July 19th 06 02:13 PM
About send email of selected range in Excel Paul Ho Excel Programming 0 December 19th 05 12:43 PM
How to Send Selected Data thourough Mail or message. softysachin Excel Discussion (Misc queries) 0 August 18th 05 08:31 AM


All times are GMT +1. The time now is 11:12 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"