Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help needed selecting left cell same line

Hi all!

Can anyone tell me how to get excel to select a cell in column A on th
same row that data has just been entered by a macro, but it has to ski
text in other cells to get there!....... selection.end(xltoleft).selec
wont work as it stops when it gets to a cell that contains data!

Simo

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Help needed selecting left cell same line

Hi
not quite sure what you're trying to do but try
msgbox cells(activecell.row,"A").value

-----Original Message-----
Hi all!

Can anyone tell me how to get excel to select a cell in

column A on the
same row that data has just been entered by a macro, but

it has to skip
text in other cells to get there!....... selection.end

(xltoleft).select
wont work as it stops when it gets to a cell that

contains data!

Simon


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Help needed selecting left cell same line

Hi Simon,

Try: cells(selection.row,1).select

---
Regards,
Norman

"Simon Lloyd " wrote in message
...
Hi all!

Can anyone tell me how to get excel to select a cell in column A on the
same row that data has just been entered by a macro, but it has to skip
text in other cells to get there!....... selection.end(xltoleft).select
wont work as it stops when it gets to a cell that contains data!

Simon


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Help needed selecting left cell same line

If you're talking about the user doing it, then pressing the home key will
work. Otherwise:

Range("A" & ActiveCell.Row).Select

should do it.

Cheers,

Jeff

"Simon Lloyd " wrote in message
...
Hi all!

Can anyone tell me how to get excel to select a cell in column A on the
same row that data has just been entered by a macro, but it has to skip
text in other cells to get there!....... selection.end(xltoleft).select
wont work as it stops when it gets to a cell that contains data!

Simon


---
Message posted from http://www.ExcelForum.com/



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
Selecting needed format Sir Excel Discussion (Misc queries) 6 December 7th 08 06:21 AM
average line needed from one single cell Norbert[_2_] Charts and Charting in Excel 3 November 20th 08 02:04 PM
selecting every other line in excel [email protected] Excel Discussion (Misc queries) 2 December 24th 07 04:21 AM
How can I shift my data line to the left? bmeril Charts and Charting in Excel 1 January 19th 06 07:59 PM
Selecting x cells to the left of the one you are on -DRB- Excel Programming 1 October 7th 03 03:54 PM


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