Hi Ashish,
This  below code might help you.

lstrow = Range("A65000").End(xlUp).Row
Range("A1:" & "B" & lstrow).Select

On Wed, May 19, 2010 at 10:40 AM, SANJAY SONI <sanjaysoni2...@yahoo.co.in>wrote:

>   Dear All,
>
> Please help me to provide a macro code for selecting a variable range.
>
> Suppose for example the data enter from (*A1:B10)* but if the more data
> is entered into a cell by changing a range to *(A1:B20)* or (*A1:B18)*.
>
> Thanks in advance
>
> Please provide solicit inputs if you can
>
>
> *
> ------------------------------
> Best Regards,*
>
> *Sanjay*
>
> *+919303633336*
>
> **
> *
> ------------------------------
> *
>
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> HELP US GROW !!
>
> We reach over 6,800 subscribers worldwide and receive many nice notes about
> the learning and support from the group.Let friends and co-workers know they
> can subscribe to group at
> http://groups.google.com/group/excel-macros/subscribe
>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to