Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Set mwbStore = Application.Workbooks.Add()
For n = 0 To UBound(mwbD) For Each wks In mwbD(n).Worksheets Set rng = wks.UsedRange.Columns(1) Set cel = Nothing *******Problem Line Set cel = rng.Find(What:=storeNum, LookAt:=xlWhole, _ LookIn:=xlValue, SearchOrder:=xlByColumns) *****End Problem Line The basic thing is that in a workbook BUDGET1 sheet we are having first column as store names defind as a range. It is picking the store name and trying to find that store name in that first column defined as range in BUDGET1 sheet. The same function Set cel = rng.Find(What:=storeNum, LookAt:=xlWhole, _ LookIn:=xlValue, SearchOrder:=xlByColumns) is running fine in excel 2000 but gives Subscript out of range error 9 in excel 2003 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2000 clocks -- Excel 2003 works fine. | Excel Programming | |||
xls file works fine in Excel 2000 and 2007 but crashes on opening in 2003 | Excel Discussion (Misc queries) | |||
Visual Basic Function works fine in Excell 2003 but not in Excel 2 | Excel Discussion (Misc queries) | |||
Pivot table is not valid in Excel 2000 but works fine in EXCEL 200 | Excel Discussion (Misc queries) | |||
#VALUE! error: vlookup works in Excel 2000 but not 2003 | Excel Discussion (Misc queries) |