Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Functions and Ranges

If you've defined your arguments as ranges, simply use the Address property
to retrieve its address:

Function TEST(MyRange as Range)
TEST = MyRange.Address
End Function
--
______________________
Robert Rosenberg
R-COR Consulting Services
Microsoft MVP-Excel


"Nick" wrote in message
...
Hiya

I have made a function that has four parameters.

Two of them are ranges but the function is taking the
value of the range rather than its location which is what
I want. So if I input B7 into the function I get the value
of B7 rather than Range("B7").

I have defined the variable as a range object but this
seems to be wrong. What do I need to define these two
variables as?

I am using Excel 2000.

Any help would be much appreciated :)

Nick



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
If functions Looking at ranges Baba Excel Discussion (Misc queries) 3 May 10th 07 05:43 PM
IF functions and Names Ranges JaB Excel Discussion (Misc queries) 1 January 18th 07 12:30 PM
if functions with more than 7 ifs (ranges are possible?) irwinko Excel Worksheet Functions 3 May 17th 05 12:57 PM
Functions and Ranges Forrest[_3_] Excel Programming 1 December 4th 03 09:35 AM
Functions and Ranges Ian Mangelsdorf Excel Programming 1 December 3rd 03 07:02 AM


All times are GMT +1. The time now is 09:20 PM.

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

About Us

"It's about Microsoft Excel"