Range as a Varable

  • Thread starter Thread starter Rod Taylor
  • Start date Start date
R

Rod Taylor

I can take a named range such as DAT1
and change it to a variable then use it to say select
i.e. Set ab = Range("DAT9")
Set cd = Range("INT5")
cd.Select
but how do i use the varables in the next example

Set isect = Application.Intersect(Range("DAT5"), Range("INT5"))
I cant seem to figure this out
thanks
 
Rod
Simply use:
Set isect = Application.Intersect(ab, cd)
HTH Otto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Range as varable 2
Forms property using varables 2
autofill down until reach variable range 3
Speek cells, barcode scanner 3
HOW TO DO AN IF, IN A MACRO 18
Need Adaptable Macro 9
Excel VBA 1
Excel Run macro upon cell edit 0

Back
Top