Re: Setting var to selected Range
- From: Dave Peterson <petersod@xxxxxxxxxxxxxxxx>
- Date: Fri, 18 Jan 2008 15:29:43 -0600
dim myRng as range
set myrng = Range(Selection, ActiveCell.SpecialCells(xlLastCell))
or after your last line:
set myrng = selection
El Bee wrote:
I discovered the following statement
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
now I want to set a var to the selected range.
Can anyone help; this VB stuff is all new to me and I really appreciate the
help I have received from many of the Guru's on this site!!!
Thanks again for your time and knowledge.
El Bee
--
Dave Peterson
.
- Prev by Date: Re: How do you convert a pivot table to excel worksheet
- Next by Date: Re: Setting var to selected Range
- Previous by thread: Re: How do you convert a pivot table to excel worksheet
- Next by thread: Re: Setting var to selected Range
- Index(es):
Relevant Pages
|