View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Btinker Btinker is offline
external usenet poster
 
Posts: 1
Default Variable produces a complie error

I have a macro that takes a variable value from a cell on
a specific sheet. This worked just fine the first three
months we ran the thing and now I get "Compile error:
Object required".

Am I missing something? I can't figure out what's wrong.

Dim myMonth as Integer
Set myMonth = Worksheets ("BANNER DATA").Range ("A2")

The cell has the correct number in it.

Thanks for any help you can offer.