Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default how do I select cells in column A thru F in the active row?

What I'm tring to do is select cells in column A thru F in whatever row is
active no matter what cell in what column is active.

I know it's simple but I forgot how to do it. Thanks
Jon


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default how do I select cells in column A thru F in the active row?

One way:

Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 6)).Select

Regards
Rowan

"jonco" wrote:

What I'm tring to do is select cells in column A thru F in whatever row is
active no matter what cell in what column is active.

I know it's simple but I forgot how to do it. Thanks
Jon



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default how do I select cells in column A thru F in the active row?

Place this code into the worksheet (Right Click the tab and select View Code)


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error GoTo ErrorHandler
Application.EnableEvents = False
Range(Cells(Target.Row, "A"), Cells(Target.Row, "F")).Select
ErrorHandler:
Application.EnableEvents = True
End Sub

--
HTH...

Jim Thomlinson


"jonco" wrote:

What I'm tring to do is select cells in column A thru F in whatever row is
active no matter what cell in what column is active.

I know it's simple but I forgot how to do it. Thanks
Jon



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default how do I select cells in column A thru F in the active row?

Thanks guys. Perfect.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default how do I select cells in column A thru F in the active row?

A bit easier/shorter:
Cells(ActiveCell.Row,1).Resize(1,6).Select
Bob Umlas
Excel MVP


"Rowan" wrote in message
...
One way:

Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 6)).Select

Regards
Rowan

"jonco" wrote:

What I'm tring to do is select cells in column A thru F in whatever row
is
active no matter what cell in what column is active.

I know it's simple but I forgot how to do it. Thanks
Jon





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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
Selecting all the active cells in a named column. Colin Hayes Excel Worksheet Functions 14 October 22nd 09 04:47 AM
Select Active Cells Umbu Excel Worksheet Functions 0 June 24th 08 02:03 PM
Tools/Options/Charts-Active cells is dimmed. Want to select leave teds Charts and Charting in Excel 9 April 13th 06 04:02 PM
Select column cells to the left/right of active selection - an example [email protected] Excel Programming 1 March 24th 05 06:36 PM


All times are GMT +1. The time now is 07:36 AM.

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

About Us

"It's about Microsoft Excel"