View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kent McPherson[_2_] Kent McPherson[_2_] is offline
external usenet poster
 
Posts: 27
Default Run-time 1004 error

I have the following code snipet in module1 in Excel 2003:

temp = "C" & LTrim(Str(i))
labor_detail = Worksheets("Labor $").Range("temp").Value

When the code runs, temp is correctly set. e.g C2. But when the 2nd line
runs, I get the Run-Time error 1004, Application-defined or object-defined
error message.

What am I missing?