pbarreda77
New Member
- Joined
- Aug 12, 2002
- Messages
- 25
PLease let me know if my question is vague or if i am asking a silly question i have gone through hundres of posts trying to solve this problem.
I get an error in the .find statment the program doesn't seem to recognize the value of the variable couponDate when used in the find statement
Below is the code
sub
Dim couponcash as integer
Dim couponDate as Date
Dim z as integer
z = 2
CouponCash = Cells(3,z).value
CouponDate = Cells(4,z).value
With Worksheets(1).Range("a1:a500")
Set c = .find(CouponDate, Lookin:=xlvalues)
If not c is nothing then
firstaddress = c.address
do
c.offset(0,1).value = couponcash
set c =.findnext(c)
Loop while not c is nothing and c.address<> firstaddress
end if
end with
end sub
This message was edited by pbarreda77 on 2002-08-24 08:55
This message was edited by pbarreda77 on 2002-08-24 09:32
This message was edited by pbarreda77 on 2002-08-24 13:50
I get an error in the .find statment the program doesn't seem to recognize the value of the variable couponDate when used in the find statement
Below is the code
sub
Dim couponcash as integer
Dim couponDate as Date
Dim z as integer
z = 2
CouponCash = Cells(3,z).value
CouponDate = Cells(4,z).value
With Worksheets(1).Range("a1:a500")
Set c = .find(CouponDate, Lookin:=xlvalues)
If not c is nothing then
firstaddress = c.address
do
c.offset(0,1).value = couponcash
set c =.findnext(c)
Loop while not c is nothing and c.address<> firstaddress
end if
end with
end sub
This message was edited by pbarreda77 on 2002-08-24 08:55
This message was edited by pbarreda77 on 2002-08-24 09:32
This message was edited by pbarreda77 on 2002-08-24 13:50