Re: $$Excel-Macros$$ Macro :- Selecting a variable range in a excel sheet
Use this Code Sub range() R = Application.WorksheetFunction.CountA(RANGE(A1:A65536)) RANGE(A1:B R).Select End Sub On May 19, 2:40 pm, 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 Sanjay +91930366 Best Regards, -- ------ 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 athttp://www.excel-macros.blogspot.com 4. Learn VBA Macros athttp://www.quickvba.blogspot.com 5. Excel Tips and Tricks athttp://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 athttp://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
Re: $$Excel-Macros$$ Macro :- Selecting a variable range in a excel sheet
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.inwrote: 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* *+91930366* ** * -- * -- -- 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
$$Excel-Macros$$ Macro :- Selecting a variable range in a excel sheet
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 Sanjay +91930366 Best Regards, -- -- 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