PC Review


Reply
Thread Tools Rate Thread

Add a row to the current Selection

 
 
=?Utf-8?B?cG9rZGJ6?=
Guest
Posts: n/a
 
      19th Oct 2007
I am using the statments below to select a Range. What I need to do is keep
the current range and Add 1 Row to the current range.

Range(Cells(9, 6), Cells(9, colx + 6)).Select
Range(Selection, Selection.End(xlDown)).Select
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      19th Oct 2007
Selection.Resize(Selection.Rows.Count + 1).Select

Though you rarely need to select a range in Excel to work with it.

HTH,
Bernie
MS Excel MVP


"pokdbz" <(E-Mail Removed)> wrote in message
newsF464E7B-273E-4BB1-B4AA-(E-Mail Removed)...
>I am using the statments below to select a Range. What I need to do is keep
> the current range and Add 1 Row to the current range.
>
> Range(Cells(9, 6), Cells(9, colx + 6)).Select
> Range(Selection, Selection.End(xlDown)).Select



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with the current selection Keith Wilby Microsoft Excel Programming 2 17th Nov 2009 02:18 PM
How to obtain current selection using C++ JoeLiuzzo Microsoft Excel Programming 0 10th Jan 2009 12:05 AM
Current Selection = Object whicks Microsoft Excel Discussion 2 7th Nov 2007 05:09 PM
row selection - from current to last row OM Microsoft Excel Discussion 3 28th Sep 2005 07:24 PM
Update on Current Selection Randal W. Hozeski Microsoft Excel Programming 0 29th Dec 2003 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:35 AM.