errors 35 compilation error

E

Eric White

Instead of "Worksheet" (in the 4th and 5th lines of your
example) you should use "WorksheetS" (note plural "s").
You have to reference the worksheet named "foglio1"
(or "foglio2") in the Worksheets collection.


So:
Set colonna1 = Worksheets("foglio1").Range("b4:b6")

etc.
 

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