Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
turning selection into a range
A few cells are selected and my macro is run, how do i define a range out of the selection. in other words the range should be the cells that are selected. how? Thanx -- schoujar ------------------------------------------------------------------------ schoujar's Profile: http://www.excelforum.com/member.php...o&userid=26574 View this thread: http://www.excelforum.com/showthread...hreadid=400681 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
turning selection into a range
The 'Selection' property already returns a Range of selected cells... If you want to assign the selected cells to a Range variable, you can do this: Dim YourRange As Range Set YourRange = Selection schoujar Wrote: A few cells are selected and my macro is run, how do i define a range out of the selection. in other words the range should be the cells that are selected. how? Thanx -- T-Žex ------------------------------------------------------------------------ T-Žex's Profile: http://www.excelforum.com/member.php...o&userid=26572 View this thread: http://www.excelforum.com/showthread...hreadid=400681 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Narrow Range based on Selection in Another Range | Excel Discussion (Misc queries) | |||
Identifying a selection of a selection of a range | Excel Worksheet Functions | |||
Range Selection | Excel Discussion (Misc queries) | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming | |||
Creating range name for a range selection | Excel Programming |