whats wrong with this code

  • Thread starter Thread starter LiSa
  • Start date Start date
L

LiSa

Hi
Cany anyone tell me what's wrong with the code below.
I get an application defined or object defined error



With ActiveWorkbook.Sheets(1)
.Range(d9) = ThisWorkbook.Sheets(1).Range(b3)
.Range("h6") = ThisWorkbook.Sheets(1).Range("b16")
.Range("h7") = ThisWorkbook.Sheets(1).Range("d16")
.Range("h8") = ThisWorkbook.Sheets(1).Range("g16")
End With
 
Hi Lisa

at a glance

.Range(d9) = ThisWorkbook.Sheets(1).Range(b3)
should be
.Range("d9") = ThisWorkbook.Sheets(1).Range("b3")

Cheers
JulieD
 
I'd missed out the "" - how embarrassing.

Thanks for the help with the previous query guys
 

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

Back
Top