Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Macro Range Selection

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Macro Range Selection

hi
range("A:C").select would select columns A through C but what is the
"current cursor row"?

regards
FSt1

"Roy A." wrote:

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Macro Range Selection

maybe

Union(ActiveCell.EntireRow, Range("A:C")).Select

Mike

"Roy A." wrote:

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro Range Selection

I bet you meant

intersect(activecell.entirerow, range("a:c"))



Mike H wrote:

maybe

Union(ActiveCell.EntireRow, Range("A:C")).Select

Mike

"Roy A." wrote:

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Macro Range Selection

I did <g thanks

"Dave Peterson" wrote:

I bet you meant

intersect(activecell.entirerow, range("a:c"))



Mike H wrote:

maybe

Union(ActiveCell.EntireRow, Range("A:C")).Select

Mike

"Roy A." wrote:

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Macro Range Selection

This one selects cells from A to C on activecells row:

Range(Cells(ActiveCell.Row, "A"), Cells(ActiveCell.Row, "C")).Select

Mika Oukka, IT-Consultant

"Roy A." wrote in message
...
Range("A16:C16").Select

I would like the above command to select columns A:C with the current
cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro Range Selection

One mo
activecell.entirerow.cells(1).resize(1,3).select




Roy A. wrote:

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro Range Selection

Another one:
activecell.entirerow.cells(1).range("a1:C1").selec t
or
activecell.entirerow.range("a1:C1").select

(I kind of like the documentation that .cells(1) provides.)


Dave Peterson wrote:

One mo
activecell.entirerow.cells(1).resize(1,3).select

Roy A. wrote:

Range("A16:C16").Select

I would like the above command to select columns A:C with the current cursor
row.

Obviously a Macro newbee, lol Thanks for any assistance.


--

Dave Peterson


--

Dave Peterson
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
Sumeif macro with range selection orquidea Excel Discussion (Misc queries) 14 August 29th 08 03:12 AM
Macro Range Selection Roy A.[_2_] Excel Discussion (Misc queries) 3 March 16th 08 04:38 PM
Range selection for macro Emile[_2_] Excel Programming 3 April 27th 07 05:43 PM
How to get users' range selection in VBA macro? Samuel Wu Excel Programming 2 December 1st 06 06:10 PM
Range selection code in a macro Floss Excel Programming 1 December 30th 03 01:05 AM


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