Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to have a function something like this:
Function FindDateColumn(myWS as worksheet, myDate as Date) I want to find the first (and probably only entry) of a specific date on a worksheet and return the date column. I can't seem to get it to return anything. I'd show my code, but unfortunately, it's at work and I"m not. It seems to be format specific somehow. Can someone help? Thanks, Barb Reinhardt |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you are passing a worksheet from the spreadsheet to VBA its best to pass
the string name. try this code Function FindDateColumn(myWS As String, myDate As Date) Worksheets(myWS).Select FindDateColumn = _ Selection.Find(what:=myDate, LookIn:=xlValues) End Function "Barb Reinhardt" wrote: I'd like to have a function something like this: Function FindDateColumn(myWS as worksheet, myDate as Date) I want to find the first (and probably only entry) of a specific date on a worksheet and return the date column. I can't seem to get it to return anything. I'd show my code, but unfortunately, it's at work and I"m not. It seems to be format specific somehow. Can someone help? Thanks, Barb Reinhardt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding entries if date entered in another column | Excel Worksheet Functions | |||
Value entered automatically on lookup of date in column | Excel Programming | |||
Enter date in column L if value is entered in column B | Excel Programming | |||
Return Days since Date Entered in Column. | Excel Programming | |||
Return Days since Date Entered in Column. | Excel Programming |