Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do you name a selected range? How do you determine the dimensions of the range (top left corner to bottom right corner)?
Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Select your range and then
on the menu: Insert - Name - Define - Type a name and click OK. -----Original Message----- How do you name a selected range? How do you determine the dimensions of the range (top left corner to bottom right corner)? Thanks . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to write a macro in which the user will select a range and then activate the macro. The macro will then manipulate the range. But to be able to do that I need to name the range so I can get back to it, and also define the size and location of the selected range.
"LarryN" wrote: Select your range and then on the menu: Insert - Name - Define - Type a name and click OK. -----Original Message----- How do you name a selected range? How do you determine the dimensions of the range (top left corner to bottom right corner)? Thanks . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Okie,
Selection.Name = "Fred" MsgBox "First cell of Fred is " & _ Range("Fred").Cells(1).Address MsgBox "Last cell of Fred is " & _ Range("Fred").Cells(Range("Fred").Cells.Count).Add ress MsgBox "Fred covers " & Range("Fred").Rows.Count & " Rows" MsgBox "Fred covers " & Range("Fred").Columns.Count & " Columns" HTH, Bernie MS Excel MVP "OkieViking" wrote in message ... How do you name a selected range? How do you determine the dimensions of the range (top left corner to bottom right corner)? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
print selected columns not working | Excel Discussion (Misc queries) | |||
Setting var to selected Range | Excel Discussion (Misc queries) | |||
printing selected pages in one worksheet while working in another | Excel Discussion (Misc queries) | |||
Why aren't the exceptions I selected in WS Protection working? | Excel Worksheet Functions | |||
Box around selected range | Excel Programming |