View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
clara clara is offline
external usenet poster
 
Posts: 252
Default How to refer a name in VBA

Hi Don,

Thank you for your help

Clara
--
thank you so much for your help


"Don Guillett" wrote:

Sheets("Tasks").Range("A2:A500").name="usethis"

for each t in [usethis]
'blah
next t


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"clara" wrote in message
...
Hi all,

the following is my current code:
For Each t In Sheets("Tasks").Range("A2:A500")

I'd like to define a name refer to ("A2:A500") and use that name in the
above code, how can I do it.

Clara
--
thank you so much for your help