Run-time 1004 error

K

Kent McPherson

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top