Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CEG CEG is offline
external usenet poster
 
Posts: 29
Default Extend range from A4 to last column

All I need is to select the range from A4 to the last used column in row 4.

This should be easy. There are plenty of posts about extending to the last
row, and I can't seem to make the transition to "last column" work.
--
CG
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Extend range from A4 to last column

Range(range("A4"), cells(4, columns.count).end(xltoleft)).select
--
HTH...

Jim Thomlinson


"CEG" wrote:

All I need is to select the range from A4 to the last used column in row 4.

This should be easy. There are plenty of posts about extending to the last
row, and I can't seem to make the transition to "last column" work.
--
CG

  #3   Report Post  
Posted to microsoft.public.excel.programming
CEG CEG is offline
external usenet poster
 
Posts: 29
Default Extend range from A4 to last column

Perfect! (I had the right elements, just had them in the wrong order.)
--
CG


"Jim Thomlinson" wrote:

Range(range("A4"), cells(4, columns.count).end(xltoleft)).select
--
HTH...

Jim Thomlinson


"CEG" wrote:

All I need is to select the range from A4 to the last used column in row 4.

This should be easy. There are plenty of posts about extending to the last
row, and I can't seem to make the transition to "last column" work.
--
CG

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
Extend a Range Tendresse Excel Programming 2 March 12th 08 10:37 AM
Extend Name range alex514 Excel Discussion (Misc queries) 2 February 22nd 08 05:32 PM
HOW TO EXTEND A NAMED RANGE ramana Excel Worksheet Functions 5 October 26th 05 08:53 AM
Painting Range - extend the range on the top part Shrikant Excel Discussion (Misc queries) 4 September 1st 05 11:18 AM
Extend a data range MNicholas New Users to Excel 2 August 22nd 05 09:02 PM


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