+ Reply to Thread
Results 1 to 1 of 1

Expected function or variable error

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    3

    Expected function or variable error

    Hello, I'm getting the Expected function or variable error in my code and I need a bit of help.

    The code is:

    Please Login or Register  to view this content.
    The error highlights the ".Activate" part in blue on the "wsWEEK4.Activate" code. But what I don't understand is, if I comment the next 7 lines out starting with "ElseIf WEEK_OF_MONTH = 5 Then", then i get no error for the first 4 Elseif statements. Also, WEEK_OF_MONTH should currently = 3 right now in the excel so I don't understand why it even runs the statements in WEEK_OF_MONTH = 5. I'm very confused why this is happening. Please help, thank you!!!
    Last edited by Leith Ross; 12-09-2011 at 10:43 PM. Reason: Added Code tags

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1