Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the easy way of displaying the range of cells which is assigned to a
range variable? This is for debugging purposes, and I just want a property of the variable which I can display with debug.print which will show me which cells are in the range. Grateful for advice. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MsgBox (r.Parent.Name)
MsgBox (r.Address) will display both the cells and the sheetname. -- Gary''s Student - gsnu200825 "simonc" wrote: What is the easy way of displaying the range of cells which is assigned to a range variable? This is for debugging purposes, and I just want a property of the variable which I can display with debug.print which will show me which cells are in the range. Grateful for advice. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gosh, thanks. I spent ages looking in the Locals list to find that. Who would
have thought it was so simple! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are very welcome.
By the way, in addition to displaying the sheetname and cells, you can use: r.Parent.Parent.Name to get the filename as well. -- Gary''s Student - gsnu200825 "simonc" wrote: Gosh, thanks. I spent ages looking in the Locals list to find that. Who would have thought it was so simple! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Displaying data using a variable | Excel Discussion (Misc queries) | |||
Excel 2007 SP1 - How to correct scrollbar extent? | Excel Discussion (Misc queries) | |||
Testing Range Extent | Excel Programming | |||
Displaying the Highest Value in a user-variable range of cells | Excel Programming | |||
Defining Range Extent | Excel Programming |