Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I decided for Application.WorksheetFunction.Match(EndWeek, ThisWorkbook.Sheets("Weeks").Range("Weeks"), 0) Thanks anyway - following your tips I found out, that I have always to determine sheet name, when referring to range on it. -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "Arvi Laanemets" wrote in message ... Hi In a workbook I have a named range Weeks, which contains string values in format "yyyy.ww". What is the best way to find the position of string value XWeek (which equals p.e. to "2006.01") in range Weeks using VBA? I can get the range definition ThisWorkbook.Names("Weeks") , but I haven't find a way to search in it. Of-course I can read the range into VBA as an array, add a couple of array search functions I have written before for some other project, and search this array, but maybe there is an easier way. Thanks in advance -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel2000:How to link Print Area with a named range | Excel Discussion (Misc queries) | |||
Excel2000:How to link Print Area with a named range | Excel Worksheet Functions | |||
Excel2000: Custom data validation and named ranges | Excel Discussion (Misc queries) | |||
Excel2000: Reading Named Range value from VBA | Excel Programming | |||
Excel2000: finding last row of used range | Excel Programming |