Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Range as varable

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 variables in the next example

Set isect = Application.Intersect(Range("DAT5"), Range("INT5"))
I cant seem to figure this out
thanks




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Range as varable

Set isect = Application.Intersect(ab,cd)

--

HTH

Bob Phillips

"Rod Taylor" wrote in message
.. .
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 variables in the next example

Set isect = Application.Intersect(Range("DAT5"), Range("INT5"))
I cant seem to figure this out
thanks






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Range as varable

thanks
"Bob Phillips" wrote in message
...
Set isect = Application.Intersect(ab,cd)

--

HTH

Bob Phillips

"Rod Taylor" wrote in message
.. .
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 variables in the next example

Set isect = Application.Intersect(Range("DAT5"), Range("INT5"))
I cant seem to figure this out
thanks









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
How to create a lookup table with an added varable? GIZZMO Excel Worksheet Functions 3 April 6th 09 10:32 PM
Cond. Format Data Bars of range based on values of another range alexmo Excel Worksheet Functions 4 January 16th 09 04:03 AM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


All times are GMT +1. The time now is 11:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"