Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get a run-time error 1004 on the .Select line. Can someone suggest a fix?
Sub FindDate() Dim rn As Long, offset As Long Dim stdate As Date, actdate As Date actdate = Range("Z2").Value rn = IsoWeekNumber(actdate) If rn / 2 < Int(rn / 2) Then rn = rn €“ 1 stdate = Range("A" & rn + 6).Value offset = actdate €“ stdate Range(Cells(rn + 6, 3 + offset), Cells(rn + 7, 3 + offset)).Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-Time error '1004' : Select method of Range class failed | Excel Discussion (Misc queries) | |||
Run-time error '1004': Select method of Range class failed | Excel Programming | |||
Select method of range class failed, Run time error 1004 | Excel Programming | |||
Run-time 1004 error on range select | Excel Programming |