Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2006

Tip: Looking for answers? Try searching our database.

A little help vidth a Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
excelent - 03 Dec 2006 17:59 GMT
I made this function and it works fine
xDate is 1 cell vith a date, xRange is a range vith som difrent dates

Function Vagt(xDate, xRange)
Vagt = Application.WorksheetFunction.Match(Range(xDate), Range(xRange))
End Function

The problem is that i have to use "" to make the function work

=Vagt("L3";"A3:A9";0)

Hav do i change my function so i dont have to use ""

=Vagt(L3;A3:A9;0)

thanks in advance
Niek Otten - 03 Dec 2006 18:17 GMT
Function Vagt(xDate as Range, xRange as Range)
Vagt = Application.WorksheetFunction.Match(xDate, xRange)
End Function

BTW:

=Vagt(L3;A3:A9;0) Should give an error, because the number of arguments is incorrect.

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

|I made this function and it works fine
| xDate is 1 cell vith a date, xRange is a range vith som difrent dates
[quoted text clipped - 12 lines]
|
| thanks in advance
excelent - 03 Dec 2006 18:49 GMT
Hi Niek it works great now
y i wrote =Vagt("L3";"A3:A9";0)  my mistake

i realy use =Vagt("L3";"A3:A9")

but anyway u made my day :-)  thanks alot

"Niek Otten" skrev:

> Function Vagt(xDate as Range, xRange as Range)
> Vagt = Application.WorksheetFunction.Match(xDate, xRange)
[quoted text clipped - 20 lines]
> |
> | thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.