Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mim Mim is offline
external usenet poster
 
Posts: 12
Default Placing Cursor in a Cell

How do I place the cursor in a specific location in a cell (i.e. in between
text) using VBA?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Placing Cursor in a Cell

Mim,
Depending exactly what you want to achieve:

Range("A1").Characters(Start:=2, Length:=2).Text = " inserted text"

or
Range("A1").Select
'Sets cursor to the end of text
SendKeys "{F2}"
'Moves the cursor to the left
For i=1 to Chars_To_Move
SendKeys "{LEFT}"
Nexy

NickHK

"Mim" wrote in message
...
How do I place the cursor in a specific location in a cell (i.e. in

between
text) using VBA?



  #3   Report Post  
Posted to microsoft.public.excel.programming
Mim Mim is offline
external usenet poster
 
Posts: 12
Default Placing Cursor in a Cell

Nick,
Thanks, this is exactly what I was looking for!
MIM

"NickHK" wrote:

Mim,
Depending exactly what you want to achieve:

Range("A1").Characters(Start:=2, Length:=2).Text = " inserted text"

or
Range("A1").Select
'Sets cursor to the end of text
SendKeys "{F2}"
'Moves the cursor to the left
For i=1 to Chars_To_Move
SendKeys "{LEFT}"
Nexy

NickHK

"Mim" wrote in message
...
How do I place the cursor in a specific location in a cell (i.e. in

between
text) using VBA?




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
Swapping two word and placing them in another cell Christie Excel Worksheet Functions 1 February 12th 09 12:49 AM
Placing Col & Row identifiers into a cell as text John Excel Worksheet Functions 3 May 28th 08 01:46 AM
Placing word into a seperate cell Daniel- Sydney Excel Discussion (Misc queries) 9 October 25th 07 11:43 PM
Finding a value and placing text on the cell to the right Reggie Excel Programming 4 April 5th 06 04:48 PM
Downloading image and placing in cell. Raydr Excel Programming 1 November 13th 04 01:50 AM


All times are GMT +1. The time now is 02:21 PM.

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"